
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-28-2016 04:12 PM
I'm trying to figure out in a workflow why an Approval process is being skipped. I'm assuming the variable I'm trying to use for the user doesn't have the right value but I can't seem to find away to print so I can go from there.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 08:01 AM
Might be silly question but is the user you're selecting for approval an active user?
Also, if you want to print the value of the variable, you can do this in the background script with an RITM that has already been created but not working correctly.
var gr = new GlideRecord("sc_req_item");
gr.get("SYS_ID_OF_RITM_HERE");
gs.log("Line Manager: " + gr.variables.u_manager_approval);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 07:05 AM
Can you show a screenshot of the entire workflow? Do you have other approvals in the workflow?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 07:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 08:01 AM
Might be silly question but is the user you're selecting for approval an active user?
Also, if you want to print the value of the variable, you can do this in the background script with an RITM that has already been created but not working correctly.
var gr = new GlideRecord("sc_req_item");
gr.get("SYS_ID_OF_RITM_HERE");
gs.log("Line Manager: " + gr.variables.u_manager_approval);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 08:37 AM
Yes they are active. I'll try that code,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-29-2016 12:05 PM
I went to the sys_target table and set it to run only once. Where should I see log? Sorry, I'm a noob at this haha. I had to even Google how to make a background script.