简体   繁体   English

按 Dynamics 查找值过滤 PowerApps 库

[英]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.给定从“从数据开始”模板针对本机 D365 联系人实体创建的新 PowerApp。 The new app contains a Gallery control.新应用程序包含一个图库控件。 I simply want to filter it to only show Contacts that match a specific account ID.我只是想过滤它以仅显示与特定帐户 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.我已经将控件的 Items 属性设置为这个,但它是不对的。 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.在几个小时的猜测中,我尝试将“.id”或“_id”附加到 parentaccountid(在各种情况下排列)我不知道还能在哪里看。

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

I think you have to use Lookup property _accountid_value to accomplish this.我认为您必须使用Lookup 属性_accountid_value来完成此操作。 Lookup property 查找属性

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

Reference 参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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