Refresh View API in LWC: Refresh Standard Components View from Custom LWC Salesforce ⚡️

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • In this video you will learn how to use RefreshView API in Lightning Web Components. In this video I will use a custom LWC to refresh something on the Standard Account Page components and refresh the view of it using RefreshView API without refreshing the whole page.
    #CDC #LWC #salesforce
    Join me on Instagram : / iamkapilbatra
    My journey : www.salesforce...
    Blog : www.salesforce...
    Website : www.salesforce...​​
    LinkedIn : / salesforcebolt
    Twitter : / salesforcebolt​​
    Facebook : / iamsalesforcebolt

Комментарии • 25

  • @rohanthakur4623
    @rohanthakur4623 Год назад +1

    Best explanation, as always! 🙏🏼

  • @n0cool
    @n0cool 2 дня назад +1

    Great video! Is it possible to refresh only one standard component? In my usecase I need refresh the standard chatter component on a record page when there is new message.

    • @SalesforceBolt
      @SalesforceBolt  День назад +1

      Nice scenario but unfortunately it’s not possible to refresh a particular standard component.

  • @VivekKumar-yp5vw
    @VivekKumar-yp5vw 2 месяца назад

    Hi Sir, Why does RefreshEvent not work when dispatched from lwc component inside Lightning quick Action.

  • @parthasarathinayak2507
    @parthasarathinayak2507 6 месяцев назад +1

    Great explanation!
    How we can update any lwc with immediately inserted record using stand layout ? Can you suggest some solution

    • @SalesforceBolt
      @SalesforceBolt  6 месяцев назад +1

      Thanks, can you please elaborate complete requirement ?

    • @parthasarathinayak2507
      @parthasarathinayak2507 6 месяцев назад

      In my case object I have a lwc which read only the Task data which is associated with this particular case record.whenever I create a task record by the help of the standard button I want it will refresh the lwc automation. without manual refresh

    • @SalesforceBolt
      @SalesforceBolt  6 месяцев назад +1

      @@parthasarathinayak2507 so in this case you are trying to refresh your custom component whenever the standard component is creating a record. To do the same you need to send some kind of notification to your custom component so that it can refresh itself. Webhooks could be a solution for that. Or you can also use Platform Event to trigger the notification and let your custom LWC subscribe to it!

  • @ketan4740
    @ketan4740 5 месяцев назад +2

    What if i want reverse that if record updated in standard component then i want to refresh lwc

    • @SalesforceBolt
      @SalesforceBolt  5 месяцев назад +1

      Just posted a video on it
      ruclips.net/video/TC1q787SPOc/видео.htmlsi=4Qqg5j0iqkc9jtme

  • @mito4744
    @mito4744 Год назад +1

    Great explanation!
    But is it possible to reload a related list when a related record is created from quick action?
    I used Refresh view API in my lwc that creates a related record and invoked by quick action on a record page, but the related list was not updated.
    I am really stuck here... notifyRecordUpdateAvailable didn't work either.

    • @SalesforceBolt
      @SalesforceBolt  Год назад +1

      Hi there, well it's a new functionality and might be having few limitations. I will try to find a workaround!

    • @mito4744
      @mito4744 Год назад

      ​​@@SalesforceBoltThanks a lot!🙏 I have been checking if everything is going as reference says, but I still don't know the problem. So that might be a limitation...

  • @anandkumarjha2522
    @anandkumarjha2522 10 месяцев назад +1

    How we can update any datatable with immediately inserted record using button on same lwc card in which datatable is present? Can you suggest some solution

    • @SalesforceBolt
      @SalesforceBolt  10 месяцев назад

      You need to refresh the result after buttons click

  • @nitinsen9158
    @nitinsen9158 9 месяцев назад +1

    hi bhaiya i need your help i have placed a child component inside parent component twice and getting different-different data on the basis of filter so whenever i update one child component using inline editing update data should be display without refreshing page (on both child components like add row at one component and delete row at another component ) so please let me know if you have any solution

    • @SalesforceBolt
      @SalesforceBolt  9 месяцев назад

      Hi Nitin, I think you are having your wire inside your child components. Get the data in the parent component and pass it to the child component could be a solution of doing it.

    • @nitinsen9158
      @nitinsen9158 9 месяцев назад

      @@SalesforceBolt ok I’ll try 👍

  • @ankurgupta6204
    @ankurgupta6204 Год назад +1

    Is it possible to do refresh view from quick action?

  • @GeekyTrails
    @GeekyTrails Год назад +1

    Kapil bhai itni thand 😅

  • @toddhowell7700
    @toddhowell7700 Год назад

    *Promosm* 🤦