- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2024 06:00 AM
Hi Guys,
Am facing an issue with copying values from list collector variable to string field in a custom table.
I have a list collector variable referring to user table in one of the catalog item. end user can select more than one user in it. After submitting the catalog item based on approvals these multiple users from list collector variable will need to added to string field of a custom table.
In the flow designer i used getvariables and then used inputs in update record. When it is only one record its getting copied but then its multiple records, its not getting copied in the string field.
Please suggest
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2024 03:09 AM
Okay, here you go, a simple example on how you can set the data within the Flow.
First an overview on how it's done, then I've provided some details on the steps in the flow for explanation.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2024 03:09 AM
Okay, here you go, a simple example on how you can set the data within the Flow.
First an overview on how it's done, then I've provided some details on the steps in the flow for explanation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 04:52 AM
This is working fine except its add ‘ , ‘ at starting of a word.
example:- ,ramesh,suresh,mahesh
how to remove the only first ‘ , ‘ ??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 06:50 AM
Be sure to have the loop run in different branches on the first iteration (when the Flow variable is empty). Then you set the data directly (step 5 expanded).
In all the other cases (the else-statement) the loop runs to append data (as shown in step 7 expanded)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 08:55 AM
Perfect.
thank you so much. Its working like charm.
thankyou for your efforts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2024 06:49 AM
Hi @Divya57
Can you please find the below link and let me know whether it is useful or not.
https://www.servicenow.com/community/developer-blog/using-list-collector-in-flow-designer-for-each-l...
Thanks
SP