Excel Transform Map: How to map source User ID instead of name to target group member User?

bbf35621
Kilo Sage

Hello!

 

I already have existing ServiceNow groups and users. I have an Excel spreadsheet that I need to update by adding members to groups. The challenge is that I want to map the user ID instead of the name to the target user in the group member table. I believe reference User is the required name to be able to import it. I do have the user name, but the problem is that some have more than 1 same user name or the username could be the unofficial first name that doesn't match the SN user name. That is why user ID is the safest approach. In transform map, how can I map the user ID from my Excel to a user in the group members table? Here is a sample spreadsheet that I want to use for the transform map.

example.png

1 ACCEPTED SOLUTION

Joe S1
Kilo Sage

Hello,

 

Sure, all you would need to do is to create your field mapping. Set your source field to User ID and make sure to set the Choice action to "ignore" so that new records don't get created by accident. Then set your target field to User and since it's a reference field set the Referenced value field name to "user_name" which is the field for User ID in the table.

JoeS1_0-1682623967561.png

 

Thanks,

 

Joe S

View solution in original post

10 REPLIES 10

I somehow made this work from your suggestion. I unchecked the coalescing on the Group name and update the Excel column name to ensure it matched with the field map. It worked!

SRDan
Tera Contributor

Hi - Try giving the Source Field  as 'Target record' 

 

 

SRDan_0-1682626541841.png

 

 

Thanks,

Sam

I just tried that and nothing happened.

SRDan
Tera Contributor

Did you select Choice Action as Create?

Yes, I select Choice Action as Create when I change from User ID to Target Record.