How to prevent list collector field in transform map from being updated with invalid data

Kiran_25
Tera Expert

I have created a transform map and have a list collector field which I am able to update with invalid choices.  I've tried setting the choice action to ignore and reject but the field still gets updated. 

 

As a workaround I can restrict the import sheet to only allow the user to select valid choices but I also want restrict it in Servicenow so they can't enter any bad data. They should be able to select multiple choices and update these through the transform.

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

@Kiran_25 

list field is reference type.

how you have choices in it?

share config screenshots of that dictionary entry

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Hi
This is what it looks like in the dictionary, it has choices instead of referencing a table. 

Kiran_25_0-1761054784417.png

Upon further investigation it looks like it is a glide list:

Kiran_25_0-1761055502697.png

 

@Kiran_25 

I believe that's the reason it's not working.

Do this

-> remove the field map for this list field

-> handle the logic to set the field using onBefore transform script

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

@Kiran_25 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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