Copying variable values of RITM to a record Producer via UI Action

DPrasna
Tera Contributor

Hi All,

 

I have a requirement to create a button on RITM form that converts the current RITM to an Incident.

I am trying to redirect the UI action to a record producer as below

 

var ritmNumber = g_form.getValue('number');
        var url = 'com.glideapp.servicecatalog_cat_item_view.do?sysparm_id=62fb775337fasergfgtne012';
        window.open(url);
 
However I need help with copying the variable values for current RITM and set/populate it to the variable values of the record producer. How do I do it?
Need help on the same
 
 
15 REPLIES 15

The alert does not even pop up

Hi,

 

Alert does not return any value

@DPrasna 

so it means redirection is not working.

is it getting redirected?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

MF25
Kilo Contributor

I've faced a similar issue when trying to copy variable values from an RITM to a Record Producer via the UI. In my case, I had trouble ensuring that all variables were correctly mapped and populated without breaking the workflow. One workaround I found was using a script in the Record Producer to retrieve the variables dynamically from the RITM, but it required some adjustments depending on the variable type.

Did you manage to find a reliable solution for this? I'd be interested in hearing how you approached it!

DPrasna
Tera Contributor

@Ian Leu @Jochen Geist @sachinbhasin11 can you help please?