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: Create workspace and update field

Accepted answer
49
Views
4
Comments
edited Jan 23, 2019 11:04AM in UI Extensibility 4 comments

Content

Hi,

I have a funtion to create a new contact workspace and update Firstname, Lastname and Email. Below is my code.

But in my code workspace was created but the fields are not updated. Can anyone help me what i am missing

function setcontactvalues(SetFname,SetLname,SetEmail)
                {
                    //alert(SetFname,SetLname,SetEmail);
                    ORACLE_SERVICE_CLOUD.extension_loader.load(appName , appVersion)
                    .then(function(extensionProvider)
                        {
                        extensionProvider.registerWorkspaceExtension(function(WorkspaceRecord)
                            {
                        WorkspaceRecord.createWorkspaceRecord('Contact', function(workspaceRecord){
                            WorkspaceRecord.updateField('Contact.Name.First', SetFname);
                        WorkspaceRecord.updateField('Contact.Name.Last', SetLname);                            
                            WorkspaceRecord.updateField('Contact.Email.Addr', SetEmail);
                            //WorkspaceRecord.triggerNamedEvent('ContactChanged');
                        
                            }
                        );
                        }
                    );
                    
                }

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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