Quantcast
Channel: Discussion Forum > Agent Desktop and Configuration
Viewing all articles
Browse latest Browse all 2270

On Agent BUI Not able to set Incident Primary contact using extensible framework (2 Comments)

$
0
0

Topic by Derek Tse

Content

Hi Everyone,

We are trying to Change Incident primary contact based on logic from Script. we are able to do this through Javascript API and Addins in Agent Desktop. But in Agent BUI using agent extension framework we are not able to set this field. Could you guys please help me on this issue.

function IncidentFunc(ContactID){
 
    //alert(ContactID);
ORACLE_SERVICE_CLOUD.extension_loader.load("CUSTOM_APP_ID" , "1")
.then(function(extensionProvider)
{
extensionProvider.registerWorkspaceExtension(function(WorkspaceRecord)
{
 
/*
WorkspaceRecord.getFieldValues(['Incident.Subject','Incident.Contact.CId']).then(function(IFieldDetails)
{
 
  alert(WorkspaceRecord);
  alert(IFieldDetails.getField('Incident.Contact.CId').getValue());
});
*/
//WorkspaceRecord.updateField("Incident.Subject", "Hi Lage"); 
WorkspaceRecord.updateField('Incident.Contact.CId', ContactID); 
          //alert("dd")  
 
});
});
 
}

Version

18A

Code Block


Viewing all articles
Browse latest Browse all 2270