- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2022 01:12 AM
I was able to get created Incidents from the Service-now table API. I want to know is there any endpoint available to fetch each incidents modifications activities after those modified by someone.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2022 09:27 AM
Instead of using endPoint function you should create the REST MESSAGE and call In your script
var request = new sn_ws.RESTMessageV2('YourRestMsgName','Post');
Regards,
Suresh.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2022 02:27 AM
1. You should write the Business Rule and Script include or Flow designer to trigger when incident get updated.
2. Write the script in 3rd party tool and it should run based on schedule job based on hourly , daily basis (Cases changes depends your requirement). It;s applicable when no developer supports from service now else you should follow the first step.
Regards,
Suresh.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2022 11:51 PM
Hi,
Table API is available for incident as per OOB but its helpful when you want to update the incident with the help of 3rd party.
Goto REST API explorer and in your left side select the API as table API and try with demo data and generate the end point
Else
Create the import set table and map it to target table as Incident and test with dummy data. Generate the end point. It's a best approach to do the integration. Regards, Suresh.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2022 12:29 AM
Thank you for your replay.
I will give try that approach.
----------------------------------------------------------------------------------------------
I created a simple business role script to get modifications to my-server. Can you check that script and suggests any improvement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2022 12:54 AM
I checked your code it's not deriving the service now codes.
You should create a rest message
Call the rest message in the script include
Call the script include in business rule.
You can get sample codes for Integration enablement.
Can you check that?
Regards,
Suresh.
Suresh.