- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2018 12:39 PM
I am scripting novice and pretty much take something someone else has done and try to figure out how to use it for our purposes. 🐵 I have a workflow where, in one step, I attempt to set the value of a reference field (u_application) with whatever value is captured in a reference variable (CCRchangeapp). From what I have read, we need set via sys ID but I have no idea how to do that. This is what I currently have . . . can someone please tell me what I need to change?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2018 05:58 PM
If CCRchangeapp is a reference variable as well pointing to the same table which u_application is pointing to, then I dont see any problem with the script
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2018 03:13 PM
Hello sarahyelton,
Looks good to me. Can you please make sure the variable name is correctly referenced in the script? I'm also assuming you have custom fields created on the RITM table.
Thanks,
Pradeep Sharma

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2018 05:58 PM
If CCRchangeapp is a reference variable as well pointing to the same table which u_application is pointing to, then I dont see any problem with the script
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 09:29 AM
The variable is spelled correctly and both fields (variable and custom field) are pointing to the same table. The short description and due date are being populated correctly. However, the application field (custom) is not. I had read in a couple articles that you need to set via the sysid of the value selected in the variable. Is anyone familiar with this? The "how to" points to Wiki which was disabled.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2018 10:20 AM
Can you add the below log to your script?
gs.log('++++++++++++current.variables.CCRchangeapp++++++++++++'+CCRchangeapp);
current.variables.CCRchangeapp stores the sys_id. Also confirm application field and CCRchangeapp are both reference field.
Please mark this response as correct or helpful if it assisted you with your question.