a_pl
Novice

How to get first Item from a list reference in workflow

is there a way to create a reference to the first list item of a list reference result that was returned from a smart object?

In my case, I Query the smart object GetList Method and save the result into a reference object.

i need to create some notification based on the first item (with some logical manipulation on that item) of that list, the body of the notification contains build based on the remaining list items.

Labels: (1)
0 Kudos
Reply
2 Replies
andiak
Apprentice

Re: How to get first Item from a list reference in workflow

Hi, I don't know if this helps your case but i'll try to answer

andiak_1-1627983184152.png

 

The simplest way is to set the list options to return only the first item as the image above, while also making another reference item that return the whole list. Then you can just do some logic by using the reference item that return the first item

Reply
hoshy_ntx
Novice

Re: How to get first Item from a list reference in workflow

andiak's answer is correct and one way to do it.

if you can't change the setup of the reference because you need all items later and don't to create two references - you should also be able to do this with a smartfunction:

hoshy_ntx_0-1627983994614.png

 

Reply