How to set flow variables values using script

nayanmule
Tera Expert

Hi All,

 

I am getting two ids values from an action (two separate responses using for each loop )in flow designer.

nayanmule_0-1748346086007.png

this is the output of the action . I can get more than 1 results here . ..I want to store the accessequestid and use it in the next for each item loop

nayanmule_1-1748346116334.png

 

I want to store them in flow variables with comma separated so that I can use it again in the next for each loop .

 

Any help will be appreciated.

 

Thanks,

Nayan 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@nayanmule 

create a flow variable and you can append the values you get in each iteration

check this, response from Danmax

How to push data into array variable in flow designer after for each loop? 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@nayanmule 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader