Hello, Here is the soql where I am fetching End Date from opportunity but now I have to fetch the record with the particular profile user of account related to the opportunity. SELECT Id,End_Date__c, AccountId FROM Opportunity WHERE AccountId IN: setOfAccountId
Try Below Query Please Mark It As Best Answer If It Helps
Thank You!
All Answers
Try Below Query Please Mark It As Best Answer If It Helps
Thank You!
try below query and fatch account of praticular profile.
SELECT Id, Name FROM Account where Owner.Profile.name ='profile Name'
use above query and let me know if it helps you by marking it as best answer.
Thank you
SELECT Id,End_Date__c, AccountId FROM Opportunity WHERE AccountId IN: setOfAccountId
Try Below Query Please Mark It As Best Answer If It Helps
Thank You!