How to fetch Incident modification activities from Service-now API

anuruddha banda
Kilo Contributor

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. 

1 ACCEPTED SOLUTION

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.

Regards,
Suresh.

View solution in original post

11 REPLIES 11

ersureshbe
Giga Sage
Giga Sage

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.

Regards,
Suresh.

ersureshbe
Giga Sage
Giga Sage

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.

Regards,
Suresh.

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.

https://community.servicenow.com/community?id=community_question&sys_id=ec84535adbda0110fd6325091396...

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.

Regards,
Suresh.