You need to sign in to do that
Don't have an account?
Sudiptaa Ghosh
inner query in soql
SELECT Id, (SELECT Name from Contacts WHERE CreatedDate > YESTERDAY or LastModifiedDate > YESTERDAY) from Account where CreatedDate > YESTERDAY or LastModifiedDate > YESTERDAY
I want to get all records from Account and Contact where created date or last modified date is within a certain range. If there are changes in Contact , I want those records , even there are no changes in Account Object
But this query will not fetch any records if there are any change in only Contact and no change in Account. How can I possibly do that.
Can anybody please help.
Chandu007,
how can I do that , could you pls elaborate.
You can use the below query:
I have made some changes in your query and I also implemented in my org and it's working fine and I am getting results.
I have also attached an image of the result below. Please try this query.
SELECT Id, (SELECT Name from Contacts WHERE CreatedDate >= today or LastModifiedDate >= today ) from Account where CreatedDate >= today or LastModifiedDate >= today
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com