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

arielgritti
Mega Sage

Hi developers,

 

I have this scenario.

  1. I need to create a sys_property string entry with a comma-separated list of values
  2. I need to read it in a flow in Flow designer
  3. 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

2 REPLIES 2

Abhijit4
Mega Sage

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.

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

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