- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2019 08:07 AM
I have an email being sent where I want to link to a catalog item. When the link to the item is clicked, I want it to open in our portal and populate 3 fields. I've seen several things on the community, but I'm having trouble trying to determine all the pieced needed to accomplish this. I've done something similar for when we used the CMS and order guides but that's been obsolete for several years now. Any help is greatly appreciated. Thank you.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2019 02:24 PM
I would take a look at this tool: https://snprotips.com/blog/2019/4/4/set-catalog-variables-from-url-params-free-tool

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2019 08:12 AM
Something like we did in this thread: https://community.servicenow.com/community?id=community_question&sys_id=b2b53ef5dbf57b001cd8a345ca96...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2019 07:50 AM
I have this onload script:
function onLoad() {
//Use the 'getParameterValue' function below to get the parameter values from the URL
var rt = getParameterValue('sysparm_req_type');
var cItem = getParameterValue('sysparm_item');
g_form.setValue('req_type', rt);
g_form.setValue('cat_item', cItem);
}
function getParameterValue(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(top.location);
if (results == null) {
return "";
} else {
return unescape(results[1]);
}
}
And I build the URL via a scheduled job that triggers and email and the URL looks like this:
and I get this page -- is there something I'm missing? Do I need to add something to the variables themselves? :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2019 12:18 PM
Hi Micahel, were you able to see my reply? I'm having some issues getting this to work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2019 02:24 PM
I would take a look at this tool: https://snprotips.com/blog/2019/4/4/set-catalog-variables-from-url-params-free-tool