ISSUE : Get List Collector Value in Flow and use value in FOR EACH loop

Sohail Khilji
Kilo Patron
Kilo Patron

Dear Community !

 

I have an issue with a list collector field value in flow desinger.

 

Objective : 

I want to collect the list of CIs in a list collector and use in flow designer to set them as Non-Operational. I tried to create a custom Action and use in flow to parse with split(','). But had no luck. Seems like the issues is with input and output value types such as array.object or array.string.

 

i Tried both but no luck, in flow log i get return value as [Object Glide Record].

 

Error Log:

SohailKhilji_0-1690362452211.png

 

INPUT:

SohailKhilji_1-1690362532413.png

 

SCRIPT : 

SohailKhilji_2-1690362583104.png

 

 

OUTPUT:

SohailKhilji_3-1690362605918.png

 

SohailKhilji_4-1690362628685.png

 

@Ankur Bawiskar , I refered to your article too... can you help in this case?

@Community Alums , @Sagar Pagar.


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

1 ACCEPTED SOLUTION

Josh Pirozzi
Kilo Sage

Hey @Sohail Khilji,

 

Thanks for your details here! We've been trying to work on a similar dev effort and the Custom Action isn't working for us either. 

 

I'm not sure if you're still experiencing this issue/situation, but I was able to come up with a potential solution without using the Custom Action. See my comment on: https://www.servicenow.com/community/developer-blog/using-list-collector-in-flow-designer-for-each-l...

 

Thanks,

Josh Pirozzi

View solution in original post

5 REPLIES 5

Hi @Sohail Khilji

 

I just wrote up a post for it where I included a step-by-step along with screenshots.

 

Hope it helps!

- Josh Pirozzi

https://www.servicenow.com/community/developer-forum/flow-designer-amp-list-collector-quot-for-each-...