DocuSign Integration Issue

Harsha1
Tera Contributor

 

Hi Community,

Hope you all are doing great. We have done the Integration with Docusign.

 

In HR agent workspace we have UI Action - "Send with Docusign". After clicking UI action , we are creating a Envelope.

and with Envelope it is return back to Native HR case. Not the Agent workspace HR case.

 

We want to return back to the agent workspace HR case only after creating a Envelop.

 

We have two UI action. one for workspace and one for native .

 

UI action workspace script - 

 

function onClick(g_form) {  
var url = '/esignifi?id=esignifi_prep_screen&map_sys_id=76500c658777791027cb65373cbb35d7&source_sys_id=' + g_form.getUniqueValue();
    var win = top.window.open(url, '_blank'); win.focus(); 
}
 
 
UI action Native Script -
try {
    current.update();
    var url = x_genr_esignifi.eSignifiPub2.mapSend('76500c658777791027cb65373cbb35d7', current);
    action.setRedirectURL(url);
}
catch(e){
    gs.addErrorMessage(global.JSON.stringify(e));
    action.setRedirectURL(current);
}
 
How can I modify UI action script so that it will return back to HR agent workspace after creating a Envelop.
 
Thanks & Regards,
Harsha .
0 REPLIES 0