How to get value from list type field in flow designer

shweta14
Tera Contributor

Hi Community,

 

I am using look up record in flow designer from this i have to compare in if both the value should be equal.

but in if i am getting all values from that list in comma separated.

example :- 

"record.values =X,Y,Z "  but want to get only "record.values =Y" in if condition

how to achieve this?

13 REPLIES 13

Vishwa Pandya19
Mega Sage

Hi Shweta,

 

Below article should be able to help you.

https://www.servicenow.com/community/developer-blog/using-list-collector-in-flow-designer-for-each-l...

If my answer helped you in any way please mark it as correct.

Hi Vishwa,

 

tried custom action in flow but not getting exact output.

also tried array.object array.string but nothing works

 

shweta14_0-1712050993870.png

 

Hi Shweta,

 

Try making the action input as String and output as Array. String
This has worked for me in my PDI.

 

If my answer helped you in any way please mark it as correct.

Hi Vishwa,

 

I have used input as string and output as array.string but still same issue.