Load data from excel in to Glide list field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2017 05:54 AM
Hi All,
I have comma seperated users field in my excel and I'm tryingto load in to glidelist field on my table using transform map. Below is my script which I have placed under Field map in transform map but it isn't working. What am I missing?
Thanks
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2017 06:03 AM
Hi Ganesh,
I generally don't use source scripts on each field. Have you tried something similar in the main transform script to set target.u_vendor_manager using this function?
var final = source.u_vendor_manager.toString().split(',');
var answer = [];
for (var i = 0 ; i < final.length; i++) {
var usr = new GlideRecord('sys_user');
if (use.get('name', final[i])) {
answer.push(usr.getValue('sys_id'));
}
}
target.u_vendor_manager = answer.join(',');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2017 06:04 AM
Got it. Please ignore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-07-2022 06:22 AM
how u resolved it? please i have a similar problem