Event Handler Condition - Advanced > "Conditionally"

cagg
Tera Guru

Does anyone know what the "Event handler condition" should accept as a condition? There is no documentation I can find on this, all of the docs for event handling stop short of explaining this.

 

What I am looking for is something like this

@payload.fieldName == 'myFieldName' - execute the event.

 

cagg_0-1677686851086.png

 

Thanks, Jim

 

9 REPLIES 9

Hi,

Can you please help with the condition where I want to display an alert based on field "state" of a specific record (e.g. incident).
I have created an alert and wants to set a "Event handler condition" something like this 

IF((state == "80"), truefalse). I am not sure how to use field and value as condition here.

Hi Vikramjeet, it looks like the "@state" parameter is not available in the "Event handler condition". What I would suggest is to create an event that would fire on the field or form/record and parse out the field that you need by using the return payload(@payload) "fieldName" and then grab the "value" or "displayValue" to meet your trigger condition.

 

Jim

Hi, is this possible to set  "IF((@data.aggregation_query_in_checklist.output.data.GlideAggregate_Query[0].count>0),false,true)" like this? . It's not working for me. 

Hi @Brad Tilton and @cagg ,

Could you please help with the list here? The above link redirects me to ( https://docs.servicenow.com/bundle/washingtondc-application-development/page/build/custom-applicatio... ) everytime.

I am also looking for a list of formulae.

Regards,
Aishwarya

Hi @Aishwarya59 

Please try this link - Add and configure components (servicenow.com)

I changed sandiego to utah and it worked!