Read a sys_property comma separated string and use it in a for each in Flow Designer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 04:22 AM
Hi developers,
I have this scenario.
- I need to create a sys_property string entry with a comma-separated list of values
- I need to read it in a flow in Flow designer
- I need to loop for each value in the string
I'm currently stopped in step 3.
I created the sys_property. I can read it in flow designer. But I can't (better, I don't know) how to convert it to an array to use it in a For-each loop in Flow designer.
Any idea?
Thanks,
Ariel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 04:29 AM
I don't think thats possible without writing script so you might need to create custom action by using script step in flow designer.
For more details about script step please refer Script step
The other way I can think of is to call workflow in Flow designer and do your scripting logic in workflow.
Please mark answer as Correct or Helpful based on impact.
Regards,
Abhijit
ServiceNow MVP

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 05:47 AM
Hi @Abhijit4
Yes, I forgot to mention I'm trying to implement it using a custom action to transform the sys_property value to an array and to use it in the For Each loop.
I'll take a look to the link
Thanks,
Ariel