How to Import choices field when the type is 'Name-Value Paris' using transform Map ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2022 09:43 PM
For the choices field, we have two different section Name and value which needs to be populated while importing the excel sheet using transform Map. Please let me know your suggestions
Sample Data:-
Above sample data, I need to import in Choice Field for type (Name-Value)
- Labels:
-
Service Desk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2022 09:49 PM
Hi,
What kind of data in excel sheet you have that you want to map to this name-value pair field? Sample data would be helpful.
Regards,
Muhammad
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2022 10:02 PM
I have updated my Question and added sample data

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2022 10:18 PM
I'm not able to understand why you are using name-value pair as a target field here if you can explain that would be great.
However, in your transform script, you can try something like this.
//replace u_choice with the name of the field from source table/import set.
var name = source['u_choice'].getLabel();
//replace u_name_value_pair with the name of the target field.
target.u_name_value_pair[name] = source.u_choice;
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2022 11:31 PM
I have added the sample data in the question.
kindly do needful