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

Unable to get current thread content within BUI extension

Received Response
4
Views
1
Comments

Summary: I am trying to retrieve the current thread content(uncommitted) within BUI extension using the code snippet in the documentation. However, it doesn't seem to be working.


Content (required): BUI Workspace Extension


Version (include the version you are using, if applicable): 21B


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

ORACLE_SERVICE_CLOUD.extension_loader.load("IncidentThread" , "1")

.then(function(extensionProvider)

{

console.log('Before threadEntry Extension');

extensionProvider.registerWorkspaceExtension(function(incidentWorkspaceRecord)

{

console.log('Before threadEntry Extension 2');

incidentWorkspaceRecord.getCurrentEditedThread('Response',true).then(function(threadEntry)

{

var threadContent = threadEntry.getContent();

console.log('Thread content' + threadContent);

},

function(rejectJson) {

console.log('Failed to get thread content');

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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