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
Rahim Uddin 19Rahim Uddin 19 

@Future method runs in user context

Hi All,
I have a batch job which is updating the records, init i have one future method.Now i am running the batch from execute anonymous. But in the debug log future method is running in API user context. its showing sumitted by that user.

Could anyone please explain what would be the reason for this.

Thanks,
Rahim
Lokesh KumarLokesh Kumar
Did you run on Developer console? If yes, the context won't get changed to the system Or include without sharing. 
 -Lokesh