Associate Interaction to request created from record producer

conanlloyd
Giga Guru

In the Service Operations Workspace on the interaction form there is a UI action to Create request.  When clicked, it opens the catalog and once a request is created and submitted, associates the interaction to the new request.  This works perfectly except for items from a record producer.

 

When we choose our miscellaneous item in the catalog, which is a record producer, the new record is created but not associated to the interaction.

 

Can anyone help me update this to work for record producers as well as catalog items?

 

Below is the code for the Create Request UI action.  It seems to leverage the openCatalogItem method of the g_service_catalog api but I can't seem to find any documentation for it.

function onClick() {
    g_form.setValue('state', 'closed_complete');
    g_form.setValue('active', 'false');
    var result = g_form.submit('sysverb_ws_save');
    if (!result) { // failed form submission
        return;
    }
    result.then(function() {
        var params = {};
        params.sysparm_parent_table = "interaction";
        params.sysparm_parent_sys_id = g_form.getUniqueValue();
        g_service_catalog.openCatalogItem('sc_cat_item', '-1', params);
    });
}

 

2 REPLIES 2

SANDEEP28
Mega Sage

@conanlloyd I just tried creating record using record producer (can we help you?) and it got associated with interaction. Could you share screenshot from where you are raising record from record producer.

 

SANDEEP28_0-1745862769681.png

 

 

 

 

 

Thanks for the response Sandeep.  My steps are as follows:

  1. On the Interaction form in the Service Operations Workspace, I click Create Request
    conanlloyd_0-1745863350664.png
  2. Our Catalog opens up:
    conanlloyd_1-1745863473082.png
  3. I navigate to our Miscellaneous request
    conanlloyd_2-1745863585760.png
  4. Then fill out the form and submit.
    conanlloyd_3-1745863638191.png
  5. Item is created but not associated to the Interaction
    conanlloyd_4-1745863694195.png