This is exactly the usecase i am working on, thanks mate for this work around🙌
@SalesforceBolt8 ай бұрын
Great, glad you like it 🙂
@roysan89617 сағат бұрын
It didn't work for me the callBackFunction never called and refreshmydata() eventually not called either for my case. My usecase was my custom component is showin contact name and accountname and in contact name i have a type attribute link which opens current contact in a standard salesforce edit record as popup like normal standard behaviour. But even after save custom component didn't refresh... It's not a full proof solution i think. Please check..
@DineshKumar-hh8pq6 күн бұрын
Hi is this the only way to check if a record is updated in detail using lwc. Is there any optimization available now. Thank you in advance
@SalesforceBoltКүн бұрын
There are many ways to check if record is getting updated, are you looking for a specific scenario?
@guerrdev3 ай бұрын
I tried to do this and it works but only for the admin, I gave access to the Apex Classes to the profile of the user which cannot see the changes with the refresh, but still does not work
@SalesforceBolt3 ай бұрын
Does your user has access to Platform Events as well?
@guerrdev3 ай бұрын
@@SalesforceBolt I tried to look for that permission, but I could not find it, where is it?
@penkogadzhev98054 ай бұрын
Thanks for sharing this
@SalesforceBolt4 ай бұрын
Glad you like it!
@samirshaikh92018 ай бұрын
What is solution if we are not using wire decorator to fetch records? In that case we can not use refreshApex
@SalesforceBolt8 ай бұрын
To refresh the cache while calling a method imperatively you can use notifyRecordUpdateAvailable(recordIds)
@vetealaurent33807 ай бұрын
hello thanks for the video, we are using this same workaround however we are hitting limits in terms of event listened. It seems that when all users have the component active, if one event is published all the users will receive it hence reaching limits super fast when you have undreds of user working at same time. Any idea on how to proceed ? thanks
@SalesforceBolt6 ай бұрын
Yes that's true as all the components will be listening to the same event. You can restrict user's event listening by checking for a specific permission assigned to users so that it won't trigger for all the users in the org... or we can also add filter to trigger the event on some specific field updates instead of having it for all field updates.
@yashsrivastava48038 ай бұрын
Do we have any way to fire an event on standard flexipage tab change to reload a lwc component ?
@SalesforceBolt8 ай бұрын
Unfortunately for standard tab we don't have any event yet.