Creating Tasks in ServiceNow via REST message from a Third Party Application

Shantanu1
Tera Guru

Hi Experts!

 

I have a requirement where a Third party application can send API calls to the ServiceNow platform and create tasks with the details mentioned in the API call. What should be best way to achieve this and what details I would need to share with a third party App teams?

 

Any guidance will be appreciated here!

 

Thanks

7 REPLIES 7

Sandeep Rajput
Tera Patron
Tera Patron

@Shantanu1 I recommend you to go through the REST API explorer https://docs.servicenow.com/en-US/bundle/vancouver-api-reference/page/integrate/inbound-rest/concept..., this is going to be a good starting point to explore how you can allow a third party system to create tasks on your ServiceNow instance. 

Jaspal Singh
Mega Patron
Mega Patron

Hi Shantanu,

For a start you can navigate to use Rest API explorer and select Table and Post Method

JaspalSingh_0-1697818906154.png

 

DrewW
Mega Sage
Mega Sage

Well there are a number of answers to this question.  Here are just a few of them

 

- Give them an account that has access to do CRUD operations on the table in question and just point them at the Table API.  This has the downside of them needing to send over sys_id's for any of the reference fields so they will also have to do a bunch of calls to other tables to get that information.  This could be a lot of work and cause a lot of problems with bad data.

 

- Create a a new Inbound Web Service under "System Web Services" by clicking "Create New".  So System Web Services -> Inbound -> Create New.  If memory serves this will create a SOAP web service so if thats an issue then this option is out.  You can look at the docs here.

https://docs.servicenow.com/bundle/vancouver-api-reference/page/integrate/inbound-soap/concept/c_SOA...

 

- Next to consider is a Scripted REST API.  This is the one I usually use.  Docs are here

https://docs.servicenow.com/bundle/vancouver-api-reference/page/integrate/custom-web-services/task/t...

 

Thanks @DrewW , I guess i should go with a table API as we just need to create tasks with standard info. Is there a way attachments can be passed in the API call?