We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Basic Flow

RosalinaB
Mega Contributor

Has anyone run into issues with ServiceNow Basic Flows using If / Else If logic?

 

In the flow I built, the trigger is “When a new incident is created”, and the condition is Category = “Network”, then assign the ticket to the Network group. However, it seems like the backend is evaluating the value as “network” (lowercase) instead of “Network” (capitalized), so my condition isn’t matching the way I expected.

 

I tried updating the Category selection options on the incident form to fix it, but the system won’t allow me to add or modify that value.

14 REPLIES 14

svirkar420
Tera Guru

Hi @RosalinaB , What have you done in the first "LOG INFO" action, can you share a SS of that?

Meanwhile you can try this -

Do not type the value manually instead select from dropdown or pill picker.

and then use the action of 'updating record' to set the ticket assignment to network group.

 

If this helps you please mark it as helpful or if  this answer solves your requirement then mark this as accepted solution.
Regards,

Saurabh V.

@svirkar420 

Thankyou for the solution. I did select everything from the picker. Check the attached image. All the selected choices are from the picker to make sure I wasn't doing something different. Thank you again. 

 

Hi @RosalinaB , I can see your flow, however the category field that you have in your incident form is a type "LIST COLLECTOR" which is usually not the case, it is in the "dropdown" type of field.

Here, refer to this SS.

svirkar420_0-1771392617491.png

In the list collector reading the values are not as easy as dropdown, and that is why the flow is not able to read the value of category field since the flow is evaluating false.

Now, try to change the field type to dropdown from the "form designer" for that Click on the additional action on incident form > configure > form design > remove your existing category field and add field that is already configured, drag and drop that field is your incident form and save it. and run the flow again. this should work.

 

svirkar420_1-1771392776638.png

 

svirkar420_2-1771392885844.png

 

 

If this helps you please mark it as helpful or if  this answer solves your requirement then mark this as accepted solution.
Regards,

Saurabh V.

Hi @RosalinaB , Have you tried my solution, if not and you want to do it with the list collector type of field only then refer to the below article it will help you.

How to read value in a list collector - https://www.servicenow.com/community/developer-blog/using-list-collector-in-flow-designer-for-each-l...

 

If this helps you accept the answer as solution and mark it as helpful.

REgards,

Saurabh.