Flow Designer Error: Undefined Data Pill During User List Processing under split transform

Vamshibussu
Tera Contributor

In my catalog form, I have a list collector field that displays the users belonging to a selected group (configured as a multi‑lookup choice field). The requirement is to add or remove users from the group based on the modified list of users submitted through the form.

To achieve this, I used a For Each loop in Flow Designer to compare the existing group members with the updated list from the form. To convert the list collector field value into an array, I applied a Split transform within the loop. In the subsequent step, I added an If condition to remove a user from the group if the updated list does not include that member.

However, during testing, I encountered an issue where the data pill returned as undefined. Could someone advise me on how to resolve this problem?

Vamshibussu_0-1781523659750.png

 

 

3 REPLIES 3

PoonkodiS
Giga Sage

@Vamshibussu 

When the flow runs, the loop will pass the first ID into this action. The action runs a database query equivalent to: "Find the record in the User table where the Sys ID equals this specific string."

Add a new step (look up records for user table) before if condition

Ankur Bawiskar
Tera Patron

@Vamshibussu 

please share the detailed flow steps screenshots

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader