简体   繁体   中英

Filter PowerApps gallery by Dynamics lookup value

Sorry this seems such a basic question but I simply cannot find an equivalent example anywhere!

Given a new PowerApp created from the "start from data" template against the native D365 Contact entity. The new app contains a Gallery control. I simply want to filter it to only show Contacts that match a specific account ID.

I believed this should be as simple as this, but I cannot get this or any permutation that I've tried to work (syntax errors). Where am I going wrong? I've set the Items property of the control to this, but it's just not right. Among a couple of hours of guesses, I've tried appending ".id" or "_id" to parentaccountid (in various case permutations) I don't know where else to look.

Filter('Contacts', parentaccountid = "dd12fc2e-ab9a-4488-bc62-22e3bc048cb7")

I think you have to use Lookup property _accountid_value to accomplish this. Lookup property

Filter('Contacts', _accountid_value = GUID("dd12fc2e-ab9a-4488-bc62-22e3bc048cb7"))

Reference

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM