Skip to main content
Participant
May 16, 2025
Answered

use 'lightning:workspaceAPI' instead of sforce.console.isInConsole() in Aura component

  • May 16, 2025
  • 1 reply
  • 212 views

Problem Statement: Resolving Integration Issues in AgreementEditor.cmp

Adobe's requirement for /support/console/52.0/integration.js in the Aura component (AgreementEditor.cmp) is causing an error. While Adobe's code defensively checks for sforce.* before usage, the require statement is failing, triggering a popup error.

Key Issues

  • Unsupported Integration: integration.js is not supported inside Aura or LWC components, even when hosted by Visualforce (Lightning Out).
  • Navigation Limitations: The removal of sforce.console.isInConsole() eliminates advanced console navigation capabilities.
  • Workaround: Using ltng:require to load Adobe's integration.js separately allows the code to function but without enhanced navigation features.

Recommended Solution

  • Replace sforce.console.isInConsole() with lightning:workspaceAPI, which is fully supported in Lightning Experience and ensures compatibility.
  • Remove Adobe's dependency on integration.js in required scripts.
  • Future-proof the implementation by transitioning all Aura and LWC components to lightning:workspaceAPI for tab and subtab management.
Correct answer AnandSri

Hello @ambitious_being5C58!

 

I hope you are doing well, and thanks for reaching out.

 

Thank you for providing the steps and solution; this will assist other community users facing a similar issue. For future references, refer to this Adobe article for more information: Acrobat Sign for Salesforce: Troubleshooting Guide.

 

Regards,

Anand Sri.

1 reply

AnandSri
Community Manager
AnandSriCommunity ManagerCorrect answer
Community Manager
May 16, 2025

Hello @ambitious_being5C58!

 

I hope you are doing well, and thanks for reaching out.

 

Thank you for providing the steps and solution; this will assist other community users facing a similar issue. For future references, refer to this Adobe article for more information: Acrobat Sign for Salesforce: Troubleshooting Guide.

 

Regards,

Anand Sri.