- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 09:30 PM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 10:02 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2024 09:54 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 10:25 PM - edited 12-11-2024 10:55 PM
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 10:51 PM
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