You first need to get the Id of Users who could be responsible for creating the record and the fire the SOQL for the user who created the record. You can use below SOQL to get the result:
List<User> myUserList = new List<User>();
myUserList = [Select Name,Id from User];
for(User u :myUserList){
System.debug([Select CreatedDate From ObjectName where CreatedById =:u.id]);
}
You can write soql and also you can give where conditions (where createdby=:user.id)in query
or
You are looking for something else?Please elaborate your question.
Thanks and Regards
Sandhya
You first need to get the Id of Users who could be responsible for creating the record and the fire the SOQL for the user who created the record.
You can use below SOQL to get the result:
Thanks,
Ashish
I am working on opportunity.
Requirement is to create one opportunity per day.
With Regards,
THUNDER CLOUD
- Hi frnd am new to salesfirce e api. Is thr a Way to get h only latest data from sales force
- Say i hv 30000 customer how to fetch by query to getLatestUodayedRecord()
- Also getNewlyAddedAccount(currentDate)
- Your help would do wonders
8754419005