- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2017 09:08 AM
Hi guys!
I recently created several items that share the same variable set. All these items belong to the "sn_sm_legal_request" table. Anyhow, I'm consequently going to have to create several reports and analysis using the values from the variable set (which is not possible). What I'm hoping to do and make work is create new columns in the "sn_sm_legal_request" table and fill it with the values inserted into the variables by the user. For example, the variable "country" (variable name) belongs to a variable set and whenever a user fills a form and fills up the "country" variable, I want the newly created column's field "u_country" (from "sn_sm_legal_request") table to be filled. After all, I will now be able to create reports using the values off the table. I've been trying to use business rules but it isn't working. Any ideas?
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2017 09:38 AM
Samuel,
Please see this quick paragraph:
http://wiki.servicenow.com/index.php?title=Record_Producer#Populating_Record_Data
If you assign the name attribute of your variables to the same column name of the fields on your sn_sm_legal_request table, then the record producer will automatically populate those fields with the variable value. So in other words no business rule or workflow is necessary.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2017 10:00 AM
Awesome glad you got it working