Workaround: Refresh Custom LWC on Change of Data in Standard Components or Backend Updates in SFDC

  Рет қаралды 3,991

Salesforce Bolt

Salesforce Bolt

Күн бұрын

Пікірлер: 20
@ruchitham9487
@ruchitham9487 2 ай бұрын
Thank you for sharing this ❤
@SalesforceBolt
@SalesforceBolt 2 ай бұрын
You're welcome!
@Chitrapadi
@Chitrapadi 8 ай бұрын
This is exactly the usecase i am working on, thanks mate for this work around🙌
@SalesforceBolt
@SalesforceBolt 8 ай бұрын
Great, glad you like it 🙂
@roysan896
@roysan896 17 сағат бұрын
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-hh8pq
@DineshKumar-hh8pq 6 күн бұрын
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
@SalesforceBolt Күн бұрын
There are many ways to check if record is getting updated, are you looking for a specific scenario?
@guerrdev
@guerrdev 3 ай бұрын
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
@SalesforceBolt
@SalesforceBolt 3 ай бұрын
Does your user has access to Platform Events as well?
@guerrdev
@guerrdev 3 ай бұрын
@@SalesforceBolt I tried to look for that permission, but I could not find it, where is it?
@penkogadzhev9805
@penkogadzhev9805 4 ай бұрын
Thanks for sharing this
@SalesforceBolt
@SalesforceBolt 4 ай бұрын
Glad you like it!
@samirshaikh9201
@samirshaikh9201 8 ай бұрын
What is solution if we are not using wire decorator to fetch records? In that case we can not use refreshApex
@SalesforceBolt
@SalesforceBolt 8 ай бұрын
To refresh the cache while calling a method imperatively you can use notifyRecordUpdateAvailable(recordIds)
@vetealaurent3380
@vetealaurent3380 7 ай бұрын
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
@SalesforceBolt
@SalesforceBolt 6 ай бұрын
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.
@yashsrivastava4803
@yashsrivastava4803 8 ай бұрын
Do we have any way to fire an event on standard flexipage tab change to reload a lwc component ?
@SalesforceBolt
@SalesforceBolt 8 ай бұрын
Unfortunately for standard tab we don't have any event yet.
@roysan896
@roysan896 8 ай бұрын
Empapi can do this i think.
@SalesforceBolt
@SalesforceBolt 8 ай бұрын
Yes using emp api also you can subscribe to it.
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 35 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 53 МЛН
Thank you Santa
00:13
Nadir Show
Рет қаралды 59 МЛН
These Coding Projects Give You An Unfair Advantage
14:39
Harkirat Singh
Рет қаралды 364 М.
What is OpenTelemetry?
12:55
Highlight
Рет қаралды 15 М.
Creating Web Components - With Special Guest Dave Rupert!
1:33:59
Kevin Powell
Рет қаралды 43 М.
Moving from Redis to SQLite with Mike Buckbee
54:38
Aaron Francis
Рет қаралды 9 М.
Event-Driven Architecture (EDA) vs Request/Response (RR)
12:00
Confluent
Рет қаралды 175 М.
Lit 3.0 Explained
5:45
Awesome
Рет қаралды 66 М.
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 35 МЛН