Hi Folks please make sure you enable LWS in order to make use of Workspace API feature. developer.salesforce.com/docs/platform/lwc/guide/security-lwsec-enable.html
Hi, Thanks for the detailed information. Is it possible to invoke this subtab function automatically? I mean when the parent record gets opened in the console, at the same time 2 sub tabs will open.
Hi, do you want me to send you the code that I wrote in the video so that you can take reference from there as it wont be possible to let you know the exact cause of the issue without reviewing your code?
Hi, please make sure you have Service Console or any other console app open since workspaceAPI is applicable for console apps only. Please subscribe the channel if not done already! In case you are still facing the issue then kindly reach out to me and we can connect over a screen sharing session. shahbaz.3331khan@gmail.com
Hey I am using workspace api in production. I am not utilising their wire function for e.g. getEnclosingTabId() I am only using focus sub tab and getFocusedTabInfo Now my requirement is to get enclosing tab id, I can't use this wire as in our org lighting web security is disabled and we can't enable it What suggestion do you suggest Should I shift my code to aura or any other suggestion
Hi friend! In this case I would suggest make use of aura component utilising workspace API feature. Please find the relevant article link below: developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_getEnclosingTabId.htm Kindly subscribe the channel if not done already! Thanks
Hi brother, workspace api module can only be utilized when LWS is enabled. The same is mentioned in the official document as well. developer.salesforce.com/docs/component-library/bundle/lightning-platform-workspace-api/documentation Please subscribe the channel if not done already!!
Hi Folks please make sure you enable LWS in order to make use of Workspace API feature.
developer.salesforce.com/docs/platform/lwc/guide/security-lwsec-enable.html
Hi, Thanks for the detailed information.
Is it possible to invoke this subtab function automatically? I mean when the parent record gets opened in the console, at the same time 2 sub tabs will open.
Hi, Thank you for this video. I'm facing error as below (n.connect is not a function). Could you help me how to resolve this).
Hi, do you want me to send you the code that I wrote in the video so that you can take reference from there as it wont be possible to let you know the exact cause of the issue without reviewing your code?
Update the api version of your LWC.
Please subscribe the channel if not done already.
Getting this error ------platformWorkspaceApi.js:1 Uncaught (in promise) Error: openSubtab() - Could not open subtab.
Hi, please make sure you have Service Console or any other console app open since workspaceAPI is applicable for console apps only.
Please subscribe the channel if not done already!
In case you are still facing the issue then kindly reach out to me and we can connect over a screen sharing session.
shahbaz.3331khan@gmail.com
Hey
I am using workspace api in production.
I am not utilising their wire function for e.g. getEnclosingTabId()
I am only using focus sub tab and getFocusedTabInfo
Now my requirement is to get enclosing tab id, I can't use this wire as in our org lighting web security is disabled and we can't enable it
What suggestion do you suggest
Should I shift my code to aura or any other suggestion
Hi friend! In this case I would suggest make use of aura component utilising workspace API feature.
Please find the relevant article link below:
developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_getEnclosingTabId.htm
Kindly subscribe the channel if not done already!
Thanks
Thank You
Hey,
Very Nice explanation
Can we utilise this feature if Lightning Web Security is disabled the org?
Hi brother, workspace api module can only be utilized when LWS is enabled. The same is mentioned in the official document as well.
developer.salesforce.com/docs/component-library/bundle/lightning-platform-workspace-api/documentation
Please subscribe the channel if not done already!!