Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
BUI Get Contact name in Incident workspace — Cloud Customer Connect
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

BUI Get Contact name in Incident workspace

Accepted answer
18
Views
9
Comments
edited Jul 24, 2018 9:53AM in Field Service 9 comments

Content

Hi All,

In BUI extension i am trying to get contact first and last name in incident workspace but it throws null even if my contact name are entered. Below is my code

ORACLE_SERVICE_CLOUD.extension_loader.load("CUSTOM_APP_ID" , "1")
.then(function(extensionProvider)
    {
    extensionProvider.registerWorkspaceExtension(function(IWorkspaceRecord)
        {
        IWorkspaceRecord.getFieldValues(['Incident.PrimaryContact.Name.First']).then(function(IFieldDetails)
            {
            conval=IFieldDetails.getField('Incident.PrimaryContact.Name.First').getLabel();            
            });
        });
    });

 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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