Workflow Condition Issue

Cindy26
Tera Expert

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?

 

1 ACCEPTED SOLUTION

Cindy26
Tera Expert

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. 

View solution in original post

11 REPLIES 11

find_real_file.png

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.

Ok I've added this to the workflow. Where can I find the log entries? 

Navigate to System Logs -> System Log -> All

And then search in the filter Message starts with Cindy

ok I've got that far, but not sure what I'm looking for in the log entries. 

See attached. 

You will have to find your log message from the table.

find_real_file.png

 

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)...