How to move the Third Party App Data through Catalog Item using Rest API?

VIKASM535239375
Kilo Sage

How to move the Third Party App Data through Catalog Item using Rest API?

8 REPLIES 8

yes Ankur,

When passing third party data using RestAPI Post Method, How can we generate Catalog Item records?

 

As Cart API has been deprecated. Please check and confirm on the same.

@VIKASM535239375 

In flow designer you can use 'Submit catalog item request' action

SumanthDosapati_0-1747578261452.png

 

 

Accept the solution and mark as helpful if it does, to benefit future readers.
Regards,
Sumanth

@VIKASM535239375 

Did the above solution work? If yes, Accept the solution and mark as helpful to close the thread and benefit other readers.

Regards,
Sumanth

VikMach
Mega Sage

Hi @Vikas,

Did you get answer for this?
To achieve the above scenario you need to use below API POST method from the 3rd Party App.

https://MyInstance.service-now.com/api/sn_sc/servicecatalog/items/{sys_id of the catalog item}/order_now

For instance I want to submit "Renew Certificate" catalog item from 3rd party then the API will look like -
https://MyInstance.service-now.com/api/sn_sc/servicecatalog/items/7ee6f61e4fff0200086eeed18110c784/o...

When any 3rd party app that has access to this API through basic auth or oAuth2.0. They can directly create the catalog item and pass the data they want to send.
Request Body will have JSON data as :

{
     "sysparm_quantity": "1",
     "variables": {

            "requested_for" : "sys_id of the user or service account",
            "data_from_3rd_party": "",

    }
}

sysparm_quantity - defines how many order you wish to submit.
variables - all the variables you would like to receive from the 3rd party. If you wish to have different fields for each data type you can create those many variables.

When triggered from 3rd party it will create a catalog item and respective records as per your catalog item.

API Docs available at - 
https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/c_...

See the docs to understand and implement the same.

Let me know if it helped.

Regards,
Vikas K