- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 06:32 AM
I am creating a subflow that is intended to be used from different catalog items. this subflow receives the following input parameters: reference to the ritm record, reference to the assignment group and reference to the item (sc_cat_item).
while using the Create Catalog Task action in the subflow, I was able to use the first two parameters: ritm to the requested item field and the assignment group field. but I don't see how I can assign the catalog item. there is no script option there. It will be awesome if someone can help me to figure out how to use the third parameter and dynamically assign the item to allow this subflow to be 100% reusable.
thank you all in advance.
Efra
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 09:13 AM
Ok, I have a better understanding of exactly what you're trying to accomplish. I don't think what you're trying to do is possible in the way that you're wanting.
Like you noted the Template Catalog Item field is not scriptable it's set to a single static value, even if it were scriptable how would you choose the variables to move from the Available to the Selected side so that they're displayed on the Catalog Task?
There is an option though, you could not populate the Catalog item field so that way you wouldn't have to worry about which variables to show or not. On the variable record itself is a field called "global" that is not on the variable form. This field, if set to true, will automatically display the variable on the RITM and the SCTASK records. This gives you the option to re-use your subflow but on the individual variable record control what displays and what doesn't on the SCTASK.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 07:26 AM
Hello @Efra Pruneda
I think you're mapping to the wrong field on the catalog task. To map the catalog item you would map to the Item reference field of the sc_req_item record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 08:35 AM
what I am looking for a way to display all variables submitted in the original request in the sctask that is being created. I went ahead and clear the selected catalog item, but when I type 'item' in the select field dropdown I am not finding any field named 'item'. see attached screenshot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 08:42 AM
also, I look in the definition of the sc_task table and didn't find a field named 'item' or anything like it. so I am not sure how you get that field to show, but more importantly, I am not sure if using that item field will get the variables to show in the sc_task record being created. would you explain? thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 09:13 AM
Ok, I have a better understanding of exactly what you're trying to accomplish. I don't think what you're trying to do is possible in the way that you're wanting.
Like you noted the Template Catalog Item field is not scriptable it's set to a single static value, even if it were scriptable how would you choose the variables to move from the Available to the Selected side so that they're displayed on the Catalog Task?
There is an option though, you could not populate the Catalog item field so that way you wouldn't have to worry about which variables to show or not. On the variable record itself is a field called "global" that is not on the variable form. This field, if set to true, will automatically display the variable on the RITM and the SCTASK records. This gives you the option to re-use your subflow but on the individual variable record control what displays and what doesn't on the SCTASK.