- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Whenever we are working with a List Collector variable inside the flow designer, we usually encounter an error similar to the error below:
Unable to create serializable iterator for items:a8f98bb0eb32010045e1a5115206fe3a,0a826bf03710200044e0bfc8bcbe5d7a of class: class java.lang.String
We get this error because list collector variable is a comma separated string rather than an array, so the 'For Each' action is not able to iterate through that. To remediate this issue, we can follow the approach below:
1. Get the List Collector Variable Value from the Catalog Item using Get Catalog Variable Action. Let's assume that we have a list collector variable approvers, and we want to get the list of approvers within our flow to perform some task.
2. Convert the List Collector String Variable to an array by using the Split Transformation Function. As the List Collector variable values are separated by Comma, we can split into Comma and convert it to an array. In this case, as the list collector variable references to sys_user table, we will get the sys_id of the users selected in the catalog item.
3. Inside the ForEach flow logic, we can now make use of Lookup Record or any other flow action to fulfill the desired action. In this case, we will do a Lookup Record to get the User Record with the help of sys_id and thus use it further as required.
When we execute this flow, we will get the particular user from the Lookup Record.
Thank you for reading this blog. Please provide your inputs/suggestions if any. Hope you find this article helpful. Don’t forget to Mark it Helpful if it is able to assist you.
Thanks and Regards
Amit Verma
- 5,882 Views
- « Previous
-
- 1
- 2
- Next »
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.