You need to sign in to do that
Don't have an account?
vamsi krishna 106
I want fire a alert when new record is inserted in custom object in the lightning?
When user update a record(update will done by community user).Same record can view by multiple internal users. whoever is viewing the that record i need to show alert or toaster to those user.
any suggestons.
Thanks
Vamsikrishna B.
any suggestons.
Thanks
Vamsikrishna B.
You can use inline VF page on standard layout and popup alert whenever field is updated.
Below is the same snippet for opportunity.
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar
- Setup a Platform Event and fire(publish) the event from trigger (https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_publish_apex.htm) when community user updates the record .
- Suscribe to that platform event in the lightning component (https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_subscribe_lc.htm)and show a toast when event is received.
You can go through the documentation mentioned in links above. This should give good idea of using platform events.