Add the last element of a list to an attribute of an entity

0
I have a rest call an I get a list of these.  How can I get the last element of the list? and how can I then add the element to an attribute of an entity?
asked
1 answers
2

HI Patrick,

 

List operation Sort your list in descending order as per date or any ordering field then take head from that list .

List Operation

 

If you don't have any ordering attributes then  take aggregatelist  count of list, also create one counter variable value as 0, iterate the list check the condition counter = count-1 then continue else delete the iteration list object.

 

By using change list activity you can add object at the end.

 

Hope it helps!

Thanks & Regards,

Manikandan K

 

 

 

answered