Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Workflow Else IF not triggering

Blu3
Tera Contributor

Hi, I have a workflow that has an Else If which is supposed to run if the following conditions are met.

If Organization Name = Gainwell OR Organization Name = Deloitte AND Variable is set to No.

Blu3_0-1746645924407.png

The Variable is a yes/no question but whether or not I chose IS NOT Yes or IS No it doesn't seem to matter. It is marking it as True when a ticket is submitted with the Org being Deloitte and the variable field marked No. 

 

I have added the action earlier in the flow Get Variables and used the data pill for the correct variable it just isn't triggering. Any idea's as to why?

 

 

 

4 REPLIES 4

folusho
Tera Guru

@Blu3 

 

Your question is quite confusing. Shouldn't it mark it as True if you submit a ticket with:

Org as "Deloitte" and variable field is "No"?

 

Your Else If condition says it should return True if either of the following are met:

 

1. Org is "Gainwell" 

2. Org is "Deloitte" AND Variable is "No"

 

What is your expectation?

Blu3
Tera Contributor

That is correct. I want it to return True if either the following conditions are met:

1. Org is "Gainwell"

2. Org is "Deloitte" AND the Variable is "No".

 

If the variable is yes and Deloitte I want it to be false but no matter which is entered on ticket I am getting a false answer. It is saying it is unable to get variable value for some reason. I inherited this workflow from the previous admin and it also pulls variables from another Catalog item which has a seperate workflow which work fine.

@Blu3 

 

Can you put a log to see what is being returned in the variable?

 

Blu3
Tera Contributor

There is nothing pulling into the Variable. That is the error "Missing catalog Item variable." Even though I have added the variable into the workflow. There is a data pill for the variable which is what I used to create the condition. 

Blu3_0-1746821235202.png