Build a URL to dynamically pass user variables to a catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2018 07:53 PM
Evening!
Looking for some help and guidance on building a URL that can dynamically pull and pass User variable information to a catalog item.
Currently I have a notification on the Sys_User table that fires when a record is inserted. This notification will deliver to the hiring manager, who will select the URL to input additional information about this associate into a catalog item, beginning the workflow of onboarding. I would like this URL placed within the email notification, to pull variable information on the newly inserted user, to pass to the catalog item when selected.
I have found some great information on parsing the URL and populating the catalog item in service portal with an onLoad client script, from both Brad Tilton and Mark Stanger, however I am still not understanding hwo to create the URL, to provide the new users variables each time.
Populate Catalog Variable values though URL: Service Portal
Parse URL Parameters in Client Script
Any help would be greatly appreciated!
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2018 09:51 PM
Hi Pat,
I did something similiar through UI page, where I asked user to input a field value based on that I am routing user dynamically!
You can use glide ajax call to get sysid of entered value as well and replace your ajax answer in function f1() for req1 value.
1. Ui page, asking user to fill a field data !
<td>
<g:ui_reference name="xxx" table="xyz" />
</td>
<div >
<h4>Please Select xxx</h4>
<hr/>
<ul><li><u><a href = "#" id = "link" onclick="f1()"> New setup</a></u></li></ul>
</div>
2. Client Script to pass entered value in URL
function f1(){
var req1= gel("xxx").value;
var no = "/nav_to.do?uri=table.do?sys_id=-1%26sysparm_query=u_test=";
document.getElementById("link").href= no+req1;
}