Create a Catalog using REST Message

Pawan Kumar Rai
Tera Contributor

I am having five variable in catalog, all is mandatory.
The variables are:

1. Requested for:
2. Type of request: AGM (fixed)s in cata
3. Add/Remove the request: ADD (fixed)
4. Select assignment group: 
5. Name of the member to be removed: 
2 and 3 would be fixed value where as others would be depending on user input .

1, 4, & 5 should be manually selected by user

I have to use REST message to generate the catalog request with above.

4 REPLIES 4

Community Alums
Not applicable

Hi @Pawan Kumar Rai ,

You will have to let 3rd party aware with the sample request once you try that via Postman.

Also, You will have to inform them about the catalog item sys_id, variables etc

Refer to these links:

How to submit a catalog item using the Rest API

How to order Catalog Items from REST API Explorer?

Cant create a catalog item using REST API

 

Pawan Kumar Rai
Tera Contributor

Have to do with REST Message only

Ravi Gaurav
Giga Sage
Giga Sage

Hi @Pawan Kumar Rai 

You need to use the concept of table API. Use that in rest Message like the below image shown and then create a JSON body to first create a catalog like below 

RaviGaurav_0-1725516781851.png

 

Now you create another Rest Messgae this time to create the variable for the above catalog  like the below.
Pass the sys_id of catalog in second image.

RaviGaurav_1-1725516867686.png

 

If you want to automate use Business Rule.

 

 

--------------------------------------------------------------------------------------------------------------------------


If you found my response helpful, I would greatly appreciate it if you could mark it as "Accepted Solution" and "Helpful."
Your support not only benefits the community but also encourages me to continue assisting. Thank you so much!

Thanks and Regards
Ravi Gaurav | ServiceNow MVP 2025,2024 | ServiceNow Practice Lead | Solution Architect
CGI
M.Tech in Data Science & AI

 YouTube: https://www.youtube.com/@learnservicenowwithravi
 LinkedIn: https://www.linkedin.com/in/ravi-gaurav-a67542aa/

if you can please create based on my requirements then it would be great. i don't know much on this