
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2020 12:04 AM
Hi,
I am new in flow designer i have one requirment created the maintain item that containing a variable location, of type list collector .if user selected the three location ,so three catalog task should be created if four so four task should be created means dynamic flow . so please help me.how it can be possible in flow designer.
Solved! Go to Solution.
- Labels:
-
Instance Configuration
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-19-2020 12:38 AM
First screenshot is from the custom Flow Action you have to build (takes a string and returns an array).
2. Call your custom action "String to Array" with the location variable as string input (unfortunately it didn´t rename it in my flow)
3. Do a for-each on the result from the action (array of sys_ids)
3.1 Do a GlideRecord Lookup for the Location based on the for-each value (sys_id)
3.2 Create the Catalog Task as you want.
If you are not familiar with Flows and Actions, please have a look at the documentation: https://docs.servicenow.com/bundle/orlando-servicenow-platform/page/administer/flow-designer/concept...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2020 01:22 AM
Unfortunately you cannot do a for-each on a list collector. I even tried to use a transform function to use it as array, but it seem to have a bug and is not working correctly.
Looks like you need to write a Flow Action which takes the List Collector as String and returns an String-Array. Then you can loop over the array, look up the location record and create the catalog task.
Hope my example helps you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2020 02:03 AM
I didnt understand can you give me your contact number.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2020 10:21 PM
Can you please explain me in detail?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-18-2020 11:19 PM
I didn't understand 2,3,3.1 activity can you tell me from where you have taken because i m selected flow not action i m not getting the script activity.