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

In this case the Same BR will not run in an interactive session... is that fine...?

 

That's why I gave 

if (gs.getSession().isInteractive() || !gs.getSession().isInteractive()) 

 

 Can you pls try this in After BR you wote and check if it is working...?

 

 

Please mark the answer as helpful and correct if helped. 

Kind Regards,

Ravi Chandra  

 

 

Animesh Das2
Mega Sage

Hi @El Cuchi ,

 

Apart from what @Chaitanya ILCR mentioned that you may need to check the BR condition if gs.isInteractive()  is added which means it will ONLY work if a logged in user initiate a transaction and not for any integration,

 

If you are using import set API and getting the records updated through transform map, then please verify if 'Run business rules' is checked in the respective transform map. If that is unchecked you need to check that.

AnimeshDas2_0-1733984612883.png

If this address your question, please don't forget to mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @El Cuchi 

 

If you are triggering from Transform maps, you have to enable Run Business Rules ..

If your triggering from any API which triggers the BR up on Insert/update

 

Use gs.isInteractive() ll !gs.isInteractive()

 

in the advanced condition, which will run for both interactive and non interactive (API) sessions

 

Please mark the answer as helpful and correct if helped. 

Kind Regards,

Ravi Chandra