Work with Lightning Console Tabs using Workspace API in LWC

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ม.ค. 2025

ความคิดเห็น • 13

  • @codewith_Khan
    @codewith_Khan  ปีที่แล้ว +1

    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

  • @TarunPrasad-d7v
    @TarunPrasad-d7v 18 วันที่ผ่านมา

    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.

  • @SaiShanmukh-d7j
    @SaiShanmukh-d7j ปีที่แล้ว +1

    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).

    • @codewith_Khan
      @codewith_Khan  ปีที่แล้ว +1

      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?

    • @SFDCcustomiseddevesolutions
      @SFDCcustomiseddevesolutions 11 หลายเดือนก่อน

      Update the api version of your LWC.

    • @codewith_Khan
      @codewith_Khan  11 หลายเดือนก่อน

      Please subscribe the channel if not done already.

  • @ashutoshbirole1200
    @ashutoshbirole1200 9 หลายเดือนก่อน

    Getting this error ------platformWorkspaceApi.js:1 Uncaught (in promise) Error: openSubtab() - Could not open subtab.

    • @codewith_Khan
      @codewith_Khan  9 หลายเดือนก่อน

      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

  • @sharmatarun001
    @sharmatarun001 10 หลายเดือนก่อน

    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

    • @codewith_Khan
      @codewith_Khan  10 หลายเดือนก่อน +1

      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

    • @sharmatarun001
      @sharmatarun001 10 หลายเดือนก่อน

      Thank You

  • @sharmatarun001
    @sharmatarun001 11 หลายเดือนก่อน

    Hey,
    Very Nice explanation
    Can we utilise this feature if Lightning Web Security is disabled the org?

    • @codewith_Khan
      @codewith_Khan  11 หลายเดือนก่อน +1

      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!!