function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nasir SiddiquiNasir Siddiqui 

How can i find out which automation rule has trigerred a field update to a standard field on a. Standard object? The field history only shows the new and old value, the date and the user name but i cannot see what automation rule has updated it?

Best Answer chosen by Nasir Siddiqui
Khan AnasKhan Anas (Salesforce Developers) 

Hi Nasir,

If you generate more than 250 MB of debug logs in a 15-minute window, your trace flags are disabled. Salesforce sends an email to the users who last modified the trace flags, informing them that they can re-enable the trace flag in 15 minutes.

If you have other trace flags in your org I suggest you to disable them for time being and create a new log using Automated Process Traced Entity Type. You will definitely get the information about automation rule which has triggered a field update.

If you need help regarding debug logs you can go through these links.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_debugging_debug_log.htm

https://help.salesforce.com/articleView?id=code_add_users_debug_log.htm&type=5

https://help.salesforce.com/articleView?id=code_viewing_log_details.htm&type=5

https://help.salesforce.com/articleView?id=code_debug_log_delete.htm&type=5


I hope it helps you.

Kindly mark this as solved if the information was helpful.​

Thanks and Regards,
Khan Anas​

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Nasir,

There are a number of tools to help you work with these various types of automated field updates, and see what caused the update to occur:

Debug Logs: Will let you view the consequences of any action a user carries out (e.g. refreshing a record), such as workflow updates and Apex triggers triggered. It will also show validation rules passed and failed. Each debug log is limited to 20 actions, so only place a debug log on a user when you are ready to test. You can access and set debug logs on users from the set-up menu, by navigating to: "Monitoring -> Debug Logs".

Time-based workflow queue: This is a queue showing all time-based workflow actions scheduled to take place. It will also give information such as the workflow that triggered them, and the record and date they will action on.  The time-based workflow queue can be accessed from the set-up menu by navigating to "Monitoring -> Time-Based Workflow".

Set-up Audit Trail: This is an audit of all changes made in the set-up menu, and can help you in determining if someone has modified one of your automation methods, such as a workflow, or an approval process. It tracks the area the change was made, as well as the user who carried out the change, and the date and time of modification. The Audit trail can be located from the set-up menu, by navigating to: "Security controls -> View set-up audit trail".

Please refer to the below Knowledge Article provided by Salesforce:
https://help.salesforce.com/articleView?id=000205468&type=1


There is another way which is not a recommended way to find out which automation rue has triggered a field update, is to try deleting the field.
Salesforce will forbid you from deleting the field and also show all rules where the field is being referenced.


I hope it helps you.

Kindly let me inform if it helps you and close your query by marking it as solved so that it can help others in future.

Thanks and Regards,
Khan Anas
Nasir SiddiquiNasir Siddiqui
Hi Khan Anas,

Thanks for your reply.

I have tried the following options but no luck.

Field History Tracking -  showed me the new and old value, the date and the user name but not how it was updated

Debug Logs - i had setup the  but got the below error

Your Salesforce org  has reached the limit for the number of debug logs generated within a 15-minute window. All trace flags have been disabled in your org. For information on application limits, see “Debug Logs” in the Salesforce Help.
     
To resume logging, please wait at least 15 minutes and then enable the trace flags for events that you want to track.
 
I dont know when and what event is triggering that change.

Basically i have a standard contact owner field on object contact object. what is happening is if staff member changes the contact ownership something is automatically chanigng it back to the original owner. I can't see any workflow rule or a process in process builder which may be causing this.

Since it's a standard field i cant even delete and check which automation rules are triggered this field update.

I cant find any way to find track this.

Thanks
Nasir
Khan AnasKhan Anas (Salesforce Developers) 

Hi Nasir,

If you generate more than 250 MB of debug logs in a 15-minute window, your trace flags are disabled. Salesforce sends an email to the users who last modified the trace flags, informing them that they can re-enable the trace flag in 15 minutes.

If you have other trace flags in your org I suggest you to disable them for time being and create a new log using Automated Process Traced Entity Type. You will definitely get the information about automation rule which has triggered a field update.

If you need help regarding debug logs you can go through these links.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_debugging_debug_log.htm

https://help.salesforce.com/articleView?id=code_add_users_debug_log.htm&type=5

https://help.salesforce.com/articleView?id=code_viewing_log_details.htm&type=5

https://help.salesforce.com/articleView?id=code_debug_log_delete.htm&type=5


I hope it helps you.

Kindly mark this as solved if the information was helpful.​

Thanks and Regards,
Khan Anas​

This was selected as the best answer