Refresh a Related List and Record Page using getRecordNotifyChange in Lightning Web Component ☁️⚡️

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ก.พ. 2022
  • In this video you will learn to update the record page and related list using getRecordNotifyChange(recordIds).
    Fetch record updates for the specified record IDs and refresh the Lightning Data Service cache, providing your wires with the latest record data. Call this function to notify Lightning Data Service that a record has changed outside its mechanisms, such as via imperative Apex or Visualforce, or by calling User Interface API via a third-party framework.
    To ensure that getRecordNotifyChange() is called after the record update via Apex, use the async/await pattern or a Promise chain.
    #getRecordNotifyChange #uiRecordApi #LWC
    Official Documentation : developer.salesforce.com/docs...
    Join me on Instagram : / iamkapilbatra
    Blog : www.salesforcebolt.com/2022/0...
    Website : www.salesforcebolt.com​​
    LinkedIn : / salesforcebolt
    Twitter : / salesforcebolt​​
    Facebook : / iamsalesforcebolt

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

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

    thanks for share your salesforce experience with us, regards from Latam

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

    Thank you so much for sharing this very informative video. It is very useful

    • @SalesforceBolt
      @SalesforceBolt  2 ปีที่แล้ว

      You are most welcome!

    • @chithraprakash8392
      @chithraprakash8392 ปีที่แล้ว

      Can you please upload video of when the related records are deleted or created(rollup summary changes) Parent record refresh

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

    Will the contacts in datatable update if we update the contact using trigger? Will it automatically reflect the changes ? Thanks

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

    Great video

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

    Can we pass the accountid with Encodedefaultfieldvalue to Contact new page navigation mixin

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

    Nice

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

    loved it...new Sub of urs...Thanks heaps

  • @Arunkumar-Dandothi
    @Arunkumar-Dandothi ปีที่แล้ว +1

    Thank you. My problem here is when we are on Page 2 and edit a record by using this approach it is going to page 1 again. What can I do to remain on same page.?

    • @SalesforceBolt
      @SalesforceBolt  ปีที่แล้ว

      Hi there, what approach you are using to maintain the pagination? Also why are you not using RefreshView API instead?
      th-cam.com/video/MX7JAXNk594/w-d-xo.html

  • @shareandcare9083
    @shareandcare9083 ปีที่แล้ว

    Hi
    Is vice versa also possible?
    Like when u added records from UI , u have refreshed your page manaully to see data in datatable.Is it possible to refresh the LWC Automatically when someone updated the data in standard Record form

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

      I don't think so vice versa is possible, the best possibility could be to add a refresh button above the datatable and use refreshApex there.

    • @shareandcare9083
      @shareandcare9083 ปีที่แล้ว

      @@SalesforceBolt yeah that's the option I already did, but our business wants automatic refresh. Don't u think it will be took if we have this type of functionality also.
      BTW thanks for reply

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

      @@shareandcare9083 Hey I think you were looking for this th-cam.com/video/dIGfSXjUwHE/w-d-xo.html

    • @rodrigosenarodrigues3766
      @rodrigosenarodrigues3766 ปีที่แล้ว

      @@SalesforceBolt thanks work for me!

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

    hi sir good morning i want to get notification on my lwc component when lead is created without refreshing my component if there is any way then please let me know

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

      You should try lightning message services!

  • @kathan1523
    @kathan1523 ปีที่แล้ว

    I created google map based LWC component , which show Pointer on Map after providing Address details . It also showing change in Pointer if I change my Address .
    But when I refresh the page no result is showing
    how to resolve this issue

    • @SalesforceBolt
      @SalesforceBolt  ปีที่แล้ว

      Once you are refreshing your page I believe the entered address is also getting refreshed and it's not showing any result, if this is the case than you can put a dynamic address on page load and see if you get the result.

    • @kathan1523
      @kathan1523 ปีที่แล้ว

      @@SalesforceBolt how to add dynamic address? My address data is showing only lwc component is loosing the context. Marker is not showing data

  • @vishalchhetri8655
    @vishalchhetri8655 ปีที่แล้ว

    Hi, Can we achieve same functionality without using @wire

    • @SalesforceBolt
      @SalesforceBolt  ปีที่แล้ว

      To refresh wire data you may use refreshApex
      th-cam.com/video/jhVWetTBI2w/w-d-xo.html

    • @vishalchhetri8655
      @vishalchhetri8655 ปีที่แล้ว

      @@SalesforceBolt My requirement was I want to Refresh LWC but i don't want to use @wire decorator

    • @SalesforceBolt
      @SalesforceBolt  ปีที่แล้ว

      @@vishalchhetri8655 Apologies, I misunderstood. If you are using imperative method to retrieve the data in that case you have to call that method again.