- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 10:20 AM
I have an IF condition in my Access Request workflow that checks the Access Name Variable.
The condition is being met, but the workflow is not seeing it as met for some reason. (it recognizes the requested by field, but not the access name).
I have the same condition (for different access names) in the workflow and those work as expected.
I've attached a screenshot of the RITM and screenshots of the condition. Any idea why this isn't working?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 06:01 PM
I ended up resolving this - it was something to do with an inbound action we are also using. I'm not really sure how that was affecting it because the condition still should've been met based on the variable value, but it is fixed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 11:42 AM
Run Script is just another activity that you can use in your workflow to execute scripts.
In your Run Script activity, you will find a script field. Add the below line in there.
gs.info("Cindy's logs - " + current.variables.access_name);//I assumed your field name is access_name
When you raise a request for your item, when the workflow triggers, this run script should execute and create a log record in the logs table. Verify what value appears there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 11:56 AM
Ok I've added this to the workflow. Where can I find the log entries?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 12:27 PM
Navigate to System Logs -> System Log -> All
And then search in the filter Message starts with Cindy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 12:46 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2022 12:54 PM
You will have to find your log message from the table.
Remember, in the script earlier we added the string "Cindy's logs" before the variable value. So we are looking a log record that has this string in it.
When you find the record, see what value you get after the text "Cindy's log". Now compare that against the value you have in your RITM's Access Name field (if it is a reference field, find the record's sysid to compare)...