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

QUery help
I need help with writing query. I have a contact and that contact is related to an account which has a parent account(one level hierarchy) . I want to write a sosql query to get the parent account ID if I pass contact ID.
Thanks for help.
Thanks for help.
Please try with below query
Replae your original contact in query.
You will get parent account id in system debug log.
Thanks & Cheers,
Jigar