- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2015 01:30 AM
I have inherited a large catalog with about 400 requestable catalog items with workflows and variables. I come from a service management, rather than development background, so whilst my JS skills are growing fast, I am still struggling to put framework around new concepts and ideas and would be very grateful for your help.
All my catalog items have a product model associated with them that holds values that determine the approval processes required. Please don't ask why these values are there rather than on the catalog item - this was an Itil / uniformity inspired senior management decision, not mine.
Anyway, as a result, all the data that I need to create a new requestable catalog item for a piece of software is in my software model table. I would like to use a script to create a catalog item from a product model, and trigger this from a workflow on the software model table. This script would run when a new software request has been completed.
I appreciate I need to use the run Script activity, but can anyone give me any advice on what kind of script would do this, and what it would look like?
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2015 08:33 AM
No worries. In your script, add this as the last line:
cat_item.insert();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2015 08:41 AM
That's done it! Fantastic! Thank you!
Just trying to work out how to mark your answer as Correct.
