Salesforce Fact #846 | Detect field value change in LWC

Suppose we have a use case where we need to detect the change of a particular field value and need to refresh the record detail page. 

We can make use of LWC getRecord() and getFieldValue() functions to implement the same.

In this example, we have a LWC which is added to the Lead record detail page which refreshes the page when there is a change on Title field value.

Reference: https://salesforce.stackexchange.com/questions/386377/how-to-track-change-on-an-account-field-in-lwc

Attached is the screenshot.



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow