BR not running for integrations

El Cuchi
Tera Guru

hi all,

 

i trust this msg finds you all well.

i created a BR on before, on insert and update when impact changes or urgency changes.

What it does is sets the XXXXX custom field to a specific value based on the priority, impact and urgency selections.

It works great for incidents created/updated manually but it does not trigger for integrations via APIs.

These integrations set the urgency and impact to specific values and the BR is not triggered.

would you why this is not working?

 

regards.

1 ACCEPTED SOLUTION

Chaitanya ILCR
Kilo Patron

Hi @El Cuchi ,
please check if gs.isInteractive() condition is added on the condition line of the BR or Inside the Script.
if you find that statement and you want the BR to run for integrations please remove it and try to test again.

Please mark the answer as helpful and correct if helped. 

Regards,
Chaitanya

View solution in original post

7 REPLIES 7

Chaitanya ILCR
Kilo Patron

Hi @El Cuchi ,
please check if gs.isInteractive() condition is added on the condition line of the BR or Inside the Script.
if you find that statement and you want the BR to run for integrations please remove it and try to test again.

Please mark the answer as helpful and correct if helped. 

Regards,
Chaitanya

Hi Chaitanya,

i added the following condition to the script

if (gs.getSession().isInteractive() || !gs.getSession().isInteractive()) 
 
but still not being triggered.
other thoughts?
 
regards.

Hi @El Cuchi ,

you don't need add that line at all considering there will only be 2 possibilities and you are checking against both of them it always going to evaluate as true. you don't need that line at all.
since it's working even after adding that line
like @Animesh Das2  and @Ravi Chandra_K mentioned if the data is coming into the import set table find the transform map and check the "Run business rules" checkbox.

 

if there is import set table check the BR conditions and find whether the record is matching the conditions of the BR.

 

 

Regards,

Chaitanya 

the gs.isinteractive() did not work in the BEFORE BR, so i created a specific AFTER br for the creation/update of incidents for non-interactive.

 

the conditions were the same and the condition as follows.

"if(gs.isInteractive() == false) { i called a script include that updates the incident record here}