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

how to query the related records based on master record id
I had saved Account record,lets us assume,i had related record for Contact,Opportunity and case.Based on Account Id i have to get the related records,but i dont want to hard select id from Contact,Opportunity,Case like.00136000011558cAAA this is my id,help me out ,,thanks in advance.
Can u please explain what do you mean by "I dont want to hard select id from Contact,Opportunity,Case".
Usually if you use the below query it will give you the list of related records for each account records.
child relationship name can be found on lookup field
refer below query :