- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 07:38 AM
Hello, we have a requirement to fill in a variable on the Employee Center view of a catalog item via the URL. I know there are many posts about this topic but after reading them, I still do not understand what I need to do to get this to work.
To explain the requirement fully, we have a catalog item to update business applications in ServiceNow. Quarterly via flow designer, an email is sent to the business application owner. That email contains a URL to the catalog item and we want the URL in that email to fill in the Application Name reference field of the catalog item with the business application. The Application Name reference field references the cmdb_ci_business_app table.
From the other posts I've read, the way to do this is to have a catalog client script as well as a URL containing the parameter of the variable you wish to fill. My knowledge of scripting is lacking, so any assistance with this is very appreciated!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 09:38 AM - edited 11-30-2023 09:38 AM
My BAD. I missed to check UI TYPE to ALL on catalog client-script to make it run on all platforms, not only on Service Catalog.
After that once you update the sys-id of catolog item in below url with appropriate URL Params, it should work -
/esc?id=sc_cat_item&sys_id=$CAT-SYS-ID$&email=hsb&justification=thisistesting
Should work as it worked on my PDI.
Do mark this response as CORRECT / HELPFUL as it would help others & will help me as well to keep writing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 09:38 AM - edited 11-30-2023 09:38 AM
My BAD. I missed to check UI TYPE to ALL on catalog client-script to make it run on all platforms, not only on Service Catalog.
After that once you update the sys-id of catolog item in below url with appropriate URL Params, it should work -
/esc?id=sc_cat_item&sys_id=$CAT-SYS-ID$&email=hsb&justification=thisistesting
Should work as it worked on my PDI.
Do mark this response as CORRECT / HELPFUL as it would help others & will help me as well to keep writing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 09:59 AM
Awesome, that did the trick! I had set UI Type to All previously but I had too much info in my URL. This was the final one that ended up working. Thanks a ton for the help!
https://<instance>.com/esc?id=sc_cat_item&sys_id=b27fbf591b3e755051582023604bcb44&application=032272d6878d1510141243fd0ebb352a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 10:05 AM
That's great to hear. Cheers Mate 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2024 04:55 AM
Hii @H S B I am trying the same thing but I am not able to set the values here is the modified code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 02:50 AM
Hi Sir, I'm facing a issue with this link and code ...my fields are name and code