How to add variables to catalog item through script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 11:52 AM
Hello All,
we have requirement where upon new application is added to custom table business rule should trigger and then create catalog item for that application along with variables through script, I am able to create catalog item but how should i add variables to that catalog item.
Any help is appreciated am struggling with it .
-Sherice.
- Labels:
-
Service Catalog

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 01:46 PM
You can use the Cart API for creating the request.
You can find a an example below which creates request and RITM from email. You can pass the field values from your current object to variables in the way how it is getting passed from email object.
https://community.servicenow.com/community?id=community_question&sys_id=f37bc48edbabfb440be6a345ca961920
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2022 02:17 PM
sudeep,
Am creating cat item with script not request or ritm..
-S