Desktop and UI Extensibility

Get Involved. Join the Conversation.

Topic

    Bishnu Paudel
    Update Custom contact field from incident workspace
    Topic posted August 14, 2019 by Bishnu PaudelRed Ribbon: 250+ Points 
    43 Views, 2 Comments
    Title:
    Update Custom contact field from incident workspace
    Summary:
    Update Custom contact field from incident workspace in BUI
    Content:

    Hi all,

    I have a workspace where contact fields are also added. I am not able to set the value of contact custom fields from incident workspace using updatefield method or workspace record.

    Thanks,

    Bishnu

    Version:
    18B
    Code Snippet:

    Comment

     

    • Deepu Kolkkadan

      Hi Bishnu,

      You can update both Incident and Contact fields from Incident workspace. Please try below code, I tested this in BUI test instance.

      ORACLE_SERVICE_CLOUD.extension_loader.load("CUSTOM_APP_ID" , "1").then(function(extensionProvider)
      {
              extensionProvider.registerWorkspaceExtension(function(WorkspaceRecord)
             {
                    WorkspaceRecord.updateField('Incident.Subject','Default Subject');
                    WorkspaceRecord.updateField('Contact.Name.First','My fname');
       
             });
      });

      Regards,

      Deepu

    • Gursimran Singh Saini

      You can set Contact Custom+Standard Fields from Incident Workspace Rules!