- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2016 01:11 AM
I have a business rule written on Incident table. I want this to be executed only when you hit via integration (REST API) . I don't want to run this business rule when you create or update record on Incident form directly (User Interface).
I see a Condition box in Advanced tab of the business rule, how can i achieve this functionality.
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-27-2016 04:36 PM
Hi karthik,
I am not sure will it work or not, but Try by putting this !gs.getSession().isInteractive() on business rule advance condition.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2016 01:35 AM
Hi Karthik,
I do not know your integration, but just a possible solution: if you have only one system user account that is writing to incidident via REST, you could probably use "sys_created_by" or "sys_updated_by" in you condition.
Best regards
Cheers,
Kostya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2016 01:44 AM
Thanks for the response Bazanov, my Business rule runs on Before condition. "sys_created_by" or "sys_updated_by" could be anything in my case. I just want this business rule to execute only for integration (Webservices, REST API, SOAP etc..)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2016 01:37 AM
And I would create a group and add this REST accounts to this group and than write a condition to check if the user is within the group. It may be extendible for future.
Cheers,
Kostya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-24-2016 01:46 AM
Thanks! I will create a group and i will test it.