Can't Submit Catalog Item Component in Now Experience Workspace

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 10:32 AM
I've created a page in UI builder with a, OOTB Catalog Item Component.
I added the sys_id of the catalog item I want to use and it displays and allows me to fill it out!
So far so good...However...When I push Submit after filling in all required fields
I'm greeted with a blank red notification box at the top... And nothing else happens.
Anyone know how to fix this?
There are no OnSubmit scripts on this item.
Also this is a Record Producer.
- Labels:
-
Now Experience UI Framework
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 01:36 PM
I haven't tried San Diego, but the Catalog Item component basically doesn't work in Rome, unless you have something exceedingly simple. If the blank red box (and no actual Submit functionality) is the only error, you're way ahead. (How many do you see if you look at the console in Developer tools?) We had a couple posts recently about options to incorporate the Platform view of a record producer as well as may be in a UI Builder experience. I'll try to find them and paste them here for you.
This might help you: https://community.servicenow.com/community?id=community_question&sys_id=be7aa8c5dbd68110f77799ead39619da
This has some related content too: https://community.servicenow.com/community?id=community_question&sys_id=cfa470e91b2e8d10c465ece6b04bcb79

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2022 04:11 PM
Thanks for the resources Velma, I'm glad to know at least I'm not alone in my journey to accomplish this.
The main issue is, I'm trying to find a way to open the record by using the (+) next to the tabs as I detail in this post here.
https://community.servicenow.com/community?id=community_question&sys_id=ba593f731b5b0d50b4b577bc1d4bcb54
The issue is all I've figured out how to do is either open a new record (won't work due to variables), open an iFrame of the portal (can't redirect after submission), or this Catalog Item component
I've made this work for all request items in the OOTB Agent Workspace by using a script...
var params = {};
params.sysparm_parent_table = "incident";
params.sysparm_parent_sys_id = g_form.getUniqueValue();
g_service_catalog.openCatalogItem('sc_cat_item', '45acb8461bae89d0c20a5538624bcbdb', params);
unfortunately this does not seem to work in a Now Experience portal, instead it sends to the actual Record Producer Record (not something I want the users seeing).
right now I'm digging into the URL the agent workspace produces after doing this redirect... but no luck yet.