How to map variables from record producer to incident table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2015 06:07 AM
In the record producer i have a variable 'Configuration item'. On submission i want to map it to Incident table's Configuration item.
How can this be done?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2015 06:26 AM
Just give the variable a name identical to the field on the table where you want to map the value. If you name the variable 'cmdb_ci' that should do what you want.
Record Producer - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-17-2015 06:49 AM
You've got a few different options, the best of which is what Mark pointed out where you name the variables the same as the field names.
- Create a variable on the record producer with the same name as the field in the target record. For example, a variable named caller_id on a Create a New Incident record producer populates the caller_id field on the new incident record. Use a variable type that corresponds to the field type.
- Define a template to assign a static field value for all records created by the record producer.
- Define a script that uses any variable or server-side objects and functions to assign values.
- Use current.*FIELD_NAME* to reference fields on the record being created.
- Use producer.*VARIABLE_NAME* to reference values entered by the end user.
Record Producer - ServiceNow Wiki