Dynamics CRM V9 Online
Lets say we have a hierarchy in accounts:
"Microsoft HQ" is the parent with "Microsoft USA" and "Microsoft UK" as child accounts, each with their own set of contacts.
When a case is created I have a custom lookup field to account and contact.
If the case is for Microsoft HQ, the contacts are filtered correctly to those linked to Microsoft HQ using the OOB filtering on the form.
If the case is against one of the child accounts Microsoft UK, I want the list of contacts to include those from the parent, so a combined list of contacts from Microsoft HQ and Microsoft UK.
I have tried creating a second lookup field on contact to parent account and have this being updated via workflow and plugin so it cascades down. However then my lookup to contact on case would need to check two lookup fields on contact (contacts where parentaccountid = "Microsoft HQ" or new_parents_parentaccount = "Microsoft HQ")
Is this possible using some javascript?
*This post is locked for comments