+ Start a Discussion

In which Users Perspective does a Data.com Clean Job run?

Hi All,

We have a requirement where based on the Last Modified User we need to set the Priority value in a custom Field. However, we are doing this in the Before Update Event and hence are not getting the value for the Last Modified By in the Trigger.new. Can you please help us understand in which user's perspective would the Data.com Clean Job run so that we can Identify that the record was updated by a Data.com Clean Job.

What would be the value that UserInfo.getUserId() return in the before update event in this case as the data.com Clean Job runs in the background?

Thanks in advance.
SandhyaSandhya (Salesforce Developers) 

Usually,UserInfo.getUserId(); will update the owner ID as current logged user who is updating the custom field in the trigger.

Please refer below link.


​Hope this helps you!

Thanks and Regards
Thanks Sandhya for the reply.

We are aware that UserInfo.getUserId() will give the logged in users details. However, the question is that in which users perspective does an automated job run. We have scheduled a job to run every night 9pm then at that time it will automatically start executing the job. So will it take the permissions and settings for the user who had submitted the request or some other user.