Business rule is not working/triggering
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2023 12:13 AM
Hi Team,
I am trying to execute a business rule after there is insertion in the request table. My business rule is not getting triggered.
Below is my script :-
This is dev instance :- https://dev145852.service-now.com/
Order is 100 for the business rule
Need urgent help on the topic. Please suggest.
Thanks,
Aman
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2023 12:43 AM
Hi,
I guess you didn't pass Rest API name and method name in your script.
var r = new sn_ws.RESTMessageV2(‘RestAPIScriptName, ‘POST’);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2023 12:52 AM
Hi Ankita, Thanks for the reply I am creating the API request in the script only and the main issue is business rule is not even getting triggered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2023 01:01 AM
Yes, Because you didn't pass REst API Name . I shown you as an example in my previous response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2023 01:03 AM - edited 01-18-2023 01:03 AM