Unable to get current thread content within BUI extension
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');