- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 12:41 AM
Hi colleagues,
I have a couple of questions regarding Catalog Builder:
1. Is it possible to have new Wizard Steps applies just in specific Catalog Item Templates? I would like to avoid to have a new Wizard Step for all templates.
2. Once I have the Wizard Step with some variables (Single-Line Text), how can I store the information that the creator of catalog item filled to create the catalog item?
Thanks in advance!
Best regards.
Denis
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 04:46 AM
Hi @Dennis17
I think yes, you can use or access the variable but I never tried this. Give a try in PDI and share feedback with us.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 03:58 AM
Hi @Dennis17
Greetings!!
1. Is it possible to have new Wizard Steps applies just in specific Catalog Item Templates? I would like to avoid to have a new Wizard Step for all templates.
Atul: No, what is build , need to use in same manner .
2. Once I have the Wizard Step with some variables (Single-Line Text), how can I store the information that the creator of catalog item filled to create the catalog item?
Atul: Please provide some screen shot or more details.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 04:14 AM
Hi Atul,
Thanks for your response.
For the second point, my idea is to have one template to create catalog items from Catalog Builder, related to one standard flow to create one catalog task. To have specific short description and description in the catalog task (based on the different catalog item) created by Flow, I have created this Wizard Step:
So I would like to know if I need to create variables in the own catalog item to store that information and then, access from Flow to get it and set as Short Description and Description of the catalog task, or what.
Thanks in advance.
Denis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 04:46 AM
Hi @Dennis17
I think yes, you can use or access the variable but I never tried this. Give a try in PDI and share feedback with us.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2024 05:45 AM
Hi! I came across the same challenge. I managed to solve this with a simple onLoad client script on the associated record producer, that fetches the template sys_id from the URL opened (assuming you create Cat Item from Template), when you open a new cat item from a template. What did not work for me though, is when you did not have the variable loaded into any of the sections, so I did the following.
1. Implement the client script that fetches the sys_id of the template and load it into a variable you have on the associated producer (assuming your variable field is called template_id)
function onLoad() {
var url = this.location.href;
var templateIdMatch = url.match(/template-id\/([a-zA-Z0-9]+)\b/);
if (templateIdMatch && templateIdMatch[1]) {
g_form.setValue('template_id', templateIdMatch[1]);
g_form.setReadOnly('template_id', true);
g_form.setVisible('template_id', false); // You can also have another UI policy to hide this field completely on load. (Step 2 or 3 in this post)
}
2. Put the template_id field into any of the sections, and hide it by an onLoad UI Policy. At best, you can create a new section to which you only map this variable, so you can hide it easily (e.g. template_id is not empty - as you have loaded the value by the client script)
3. Create another UI Policy that shows or hides your required variables in any other section on the Catalog Builder. Best to keep them in one Section, so if you set all of them visible = false the complete section and step will not show up. For safety I would also set then those fields in this section non mandatory, and read only.
Let me know by marking accept as solution if this worked for me. If you need any other details, feel free to message me.