Validate data before inserting

Harish74
Tera Expert

Hi there, I have created a Data source of type excel. When I load data, data will get inserted into Resource plan table.

I found an observation on this.i.e,

For suppose I have filled some value under 'Requested for' column in excel who is not an user. The data is getting imported still and creating some bad data.

I need to validate the value for 'Requested for' column before the data gets imported. How is it possible? If it is possible using some script in Transform map script please provide the script as well.

Thanks in advance

 

1 ACCEPTED SOLUTION

Hi,

in the excel you are getting user's user_name or email?

if you are getting user_name then in Referenced value field name give user_name

if you are getting email then give email

find_real_file.png

Regards
Ankur

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

View solution in original post

8 REPLIES 8

Hi,

in the excel you are getting user's user_name or email?

if you are getting user_name then in Referenced value field name give user_name

if you are getting email then give email

find_real_file.png

Regards
Ankur

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

Hi Ankur, 

One last thing. Does it works for List type field which has the slushbucket attribute?

Hi,

Did I answer your original question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

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

Hi,

please use field map script and return array of sys_ids

In the referenced value field name give sys_id

Regards
Ankur

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