You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

On Agent BUI Not able to set Incident Primary contact using extensible framework

Accepted answer
26
Views
3
Comments
edited Aug 21, 2018 11:14PM in Agent Desktop 3 comments

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"); 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!