You need to sign in to do that
Don't have an account?

I want to fetch records which has been modified by system admmin profile in Apex code how to do it
How to query account on basis of profile i.e.
I want to see how many records have been edited by system admin or any other profile
Thanks in Advance ...
Please help
I want to see how many records have been edited by system admin or any other profile
Thanks in Advance ...
Please help
Assuming you know how to write Apex/SOQL. If not you may have to learn it first also for future use. But these are the steps/pseudocode that you will do:
- Query for the ProfileId of the target profile
- Query for the Users with the specific profileId
- Query for the Account on which their LastModifiedById are by the users on #2.
This is where you could learn how to write Soql just in case click here (https://developer.salesforce.com/docs/atlas.en-us.208.0.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_sosl_intro.htm).Thanks,
Assuming you are trying to query all contact records modified by System Administrator profile this can be done using -