Create a Catalog using REST Message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 09:06 PM - edited 09-04-2024 09:12 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 09:29 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 10:58 PM
Have to do with REST Message only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-04-2024 11:15 PM
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
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.
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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2024 02:06 AM
if you can please create based on my requirements then it would be great. i don't know much on this