- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 05:31 PM
Hey there,
Just a quick question - I have a catalog client script that I would like to use over multiple catalog items. They reference variables in a variable set, so the script will be the same across the three catalog items. In the client script, you need to reference a catalog item.
Is it possible to apply to multiple catalog items?
Cheers,
Brendan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 05:36 PM
Hi Brendan,
Its possible if your variables are within a variable set. That way you can associate your Catalog Client Script to a variable set.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 06:06 PM
haha, sometimes you can get so wrapped up into something that logic gets left behind.
I definitely understand what you are saying.
The client script is to auto populate user details in Variable Set B such as username, location, department etc.
Variable Set A is a variable set for the 'requested for' user. this variable set is across every catalog item that we have. Workflows use the 'requested for' variable in run scripts and task creation.
For these 3 requests, I could create a 'requested for' variable that I could add into Variable Set B, so it is all contained in a single variable set. These 3 will have their own workflow, so it would not affect that.
I have some thinking to do. How would you go about it?
Cheers,
Brendan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 06:47 PM
Hi Brendan, it appears that the same place where you will use your Variable Set A is the one where you could use your Variable Set B. You can just merge these two because you're always going to reuse them together in other catalogs.
As for the workflows, i'm not sure I understand what you're referring to. There's going to be one workflow kickoff per catalog item as soon as it's requested. On that moment there's going to be an independent version of the variables and workflow created for that catalog item request and will exist through the entire lifecycle of the request. If in the future you modify the definition of a catalog item to remove or include other variables, the existent catalog item requests will not be affected because these will work based on the version of the workflow and variables at the time the catalog item was requested.
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2017 06:50 PM
I hope this explanation helps. Please let me know if it doesn't .
Thanks,
Berny