Power Automate REST API - Create a service catalog request linked to a CSM Case
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 05:54 AM
Hello,
Looking for some quick advice. I'm trying to use Power Automate to allow an external system to create a Request. The Request is a part of the Service Catalog and I'm using the HTTP REST connector to do this.
I can create a Request and the child Request Item, but I just can't get the Request to have the Case as the parent which causes the ServiceNow flow to break.
Can anyone help me populate the request parent field, or any of the non-variable fields for that matter.
Here's the code I've been using
https://XXXXX.service-now.com/api/sn_sc/servicecatalog/items/XXXXX/add_to_cart
{
"sysparm_quantity": 1,
"variables": {
"parent": "XXXXX",
"ContactName": "Test2",
"Address": "Test",
"NumberOfDevices": "Test",
"ItemsDescription": "Test"
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 06:23 AM - edited 09-06-2023 06:26 AM
Hi @Daveedd,
I think you will just have to use the table API to update the sc_request with the parent field. I don't think that can be done with the Service Catalog API.
Edit:
Other possibility could be to add a parent variable in your catalog item. (hidden), which can be leveraged in your catalog items' flow to fill the parent in the request.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.