How to get first Item from a list reference in workflow

  • 3 August 2021
  • 2 replies
  • 31 views

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.


2 replies

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



 


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

Badge +1

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:



 

Reply