How to add record to a list?

How to add record to a list?

  

I'm creating a REST service.

It starts with a GetEmployees query which returns a list.

This list I am processing record by record using a For Each constructor.

For every record in the employee list I call a function which returns a record (field1, field2).

I want to add this record to a List of Record (field1, field2), called RankList.

However, the platform (10) won't let me choose a Server Action "ListAppend".

I can assign RankList.Current.field1 the value of field1, but the list stays empty.

How can I fill this list?

Why don't I see the ListAppend function nowhere anymore? 

Thanks & regards,

Peter.


Solution

Hello Peter,

You can add references from system and add List append Cliente Side Action. 

I hope it helps.

 


Kind Regards,

Miguel Vicente

Solution

Hi Miguel,

This certainly helped!

Just didn't know I explicitly had to reference the ListAppend from System. Once I did it (Server Action) and  for ListSort as well everything works like a charm!

Thank you very much!

Best Regards,

Peter Nijhuis.


Miguel Vicente wrote:

Hello Peter,

You can add references from system and add List append Cliente Side Action. 

I hope it helps.

 


Kind Regards,

Miguel Vicente