Can I pass incident RP values with a URL from a dashboard widget

Jeanne2
Tera Contributor

I am creating dashboards for various teams on my project.  I have created a custom widget that has a button generated from a UI page.  It will open the incident record producer just fine.  But I would like to add widgets that autopopulates certain fields and pass those parameters via URL.  This is the point where I am having trouble. When I add the parameters to the URL, I get an error of "You are either not authorized or the cart item is invalid."  BUT, the values are in the URL correctly, and if I just reload the page, it will show the incident form with the values populated. 

 

On the UI Page, my HTML code is as follows:

<div align="center">

<button style="background-color: #278efc; width: 225px; color: white; border-radius: 6px; border: 2px solid black; font-size: 16px;" onclick="javascript&colon;window.location.replace('/com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=3f1dd0320a0a0b99000a53f7604a2ef9')">Submit an Authentication Ticket</button></div>

 

The above works fine.  When I add "%26sysparm_subcategory=Authentication" to the end of the URL, I get the above error.

 

 

0 REPLIES 0