In Screen1 I am having Gallery1, in which I am Showing list of Account Names from Account Entity through Dynamics CRM.
In Screen2, I am having Gallery2, in which I am showing list of Contact Names from Contact Entity with respect to the selected Account from Gallery1.
In Account Entity (AccountID[GUID], Account Name, Primary Contact[GUID], Company Name as lookup field of Contact[GUID])
In Contact Entity (ContactID[GUID], Contact Name, Company name as Account Name[GUID])
Now in Gallery2, I am getting only Company name as Account Name list from contact Entity as I wrote Gallery2 Items: Filter(Contacts, companyName in Gallery1.Selected.Account)
To get Primary Contact also I wrote Gallery2 Items: Filter(Contacts, companyName in Gallery1.Selected.Account and ContactID in Gallery1.Selected.PrimaryContact). But, I am not getting contacts list, it is showing empty even though Contacts are there for selected account.
Can anyone help me how to get all contacts when respective account is selected.