Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
BUI get assigned account email — 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 assigned account email

Accepted answer
22
Views
2
Comments

Summary:

Fetch assigned account email

Content (required):

Hello everyone, 

I am new to BUI extensions. Was browsing community/documentation, but could not find relevant info. I apologize in advance if this question was already addressed.

I am trying to retrieve the email address of the assigned account to incident. I am able to get Account ID, Account Name, but can't find property Email (shouldn't it be something like Incident.Assigned.AcctEmail? )

Thanks in advance,

Max

Code Snippet (add any code snippets that support your topic, if applicable):

document.getElementById("submitBtn").addEventListener("click", function () {
        (async () => {
          try {
            const extensionProvider = await ORACLE_SERVICE_CLOUD.extension_loader.load("Global Extension", "1");
            const globalContext = await extensionProvider.getGlobalContext();
            const sessionToken = await globalContext.getSessionToken();
            const loggedInAccountId = await globalContext.getAccountId();
            extensionProvider.registerWorkspaceExtension(async function (workspaceRecord) {
              // get fields start
              const IFieldDetails = await workspaceRecord.getFieldValues([
                "Incident.Assigned.AcctId",
       

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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