How to Subscribe to Platform Event from LWC

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024

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

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

    Very Nice explanation. Thanks

  • @namanshetty2781
    @namanshetty2781 5 หลายเดือนก่อน

    Can i subscribe to event on a Button Click in LWC?

    • @salesforcetechbook
      @salesforcetechbook  5 หลายเดือนก่อน

      Yes

    • @namanshetty2781
      @namanshetty2781 5 หลายเดือนก่อน

      @@salesforcetechbook On the button click I have a apex class call and in this class I'm publishing the event, so based on the apex transaction I'm storing the value in platform event's field and then this event would be displayed as a toast in lwc.
      Is the above achievable?
      If yes please send me a reference

    • @namanshetty2781
      @namanshetty2781 5 หลายเดือนก่อน

      Basically, I want both the event publish and subscribe to happen on button click..... Where the publish would happen in apex and subscribe would be done in lwc in the same function of button call

  • @arrojuanusha8846
    @arrojuanusha8846 3 ปีที่แล้ว

    Hi sir,can you please upload pagination and inlineedit in lwc

  • @agnibga
    @agnibga 3 ปีที่แล้ว

    Can we see the account names in another org app page?
    Or only this org

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

      Yes if you have integrated with that org and publishing the event in that org from your org.

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

    A simple way to learn how to:
    - Create a Platform Event;
    - Publish the event using Process Builder;
    - Consuming an event with a LWC.
    Thanks.

  • @Nikita-iq1ks
    @Nikita-iq1ks 3 ปีที่แล้ว

    Hello sir i have created a custom object with name store and created so many fields like name, id, location n all but unable to add searchcontroller for but m able to do for account object
    Can u plzz help me to do for custom object

    • @salesforcetechbook
      @salesforcetechbook  3 ปีที่แล้ว

      Can you please send your code to
      salesforcetechbook@gmail.com