Flow Designer not triggering when trigger has filter

George P
Tera Guru

I have created a rather simple Flow that works against a custom table extended from Incident.  I want the flow to run when a new record is created via the Service Portal (Record Producer).  Tickets are able to be manually created, but those should not activate the flow.  The flow works successfully when tested, and works successfully with no filter applied when submitting a ticket via the Record Producer, but it also runs against manually created tickets. When I add a filter Catalog Item is empty, the flow does not run at all.  How do I get the flow to run only when a Catalog Item creates the new record?

1 ACCEPTED SOLUTION

Okay, I figured this out.  cat_item is OOTB on sc_req_item, we promoted that field to task and thus inherited it down to incident.  This was years ago, so I have to get that from one of our long-time folks.

The script that populates the field is running on Item Produced Record, so you were correct, it was not updating the value before checking the flow condition.  To get past this I used a Record Producer Script to populate the field at insert.  Now the Flow Condition can use cat_item.active is true to execute the flow.

View solution in original post

10 REPLIES 10

Aman Kumar S
Kilo Patron

What is your trigger condition?

Is it catalog item or the extended table?

Best Regards
Aman Kumar

record created on extended table > Catalog Item

 

After posting I tested that the filter does work in an IF Flow Logic, and then I can End the flow.  But that is not ideal as it runs the flow needlessly.

There is no condition as such that trigger will not work with filter condition

Check below how it works.

https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/citizen_developer/app_store_learnv2_aescreateappfromscratch_quebec_triggers

Best Regards
Aman Kumar

I see what you mean, so I tried cat_item.active is true and it doesn't like that either.  Does this not work with dot-walking either?