首页 文章

根据PowerApps中的当前用户过滤记录

提问于
浏览
0

我想使用当前用户的电子邮件在我的浏览屏幕上过滤记录 . 我使用了Office 365用户连接 .

我在浏览屏幕的项目属性上写的逻辑:

SortByColumns(Search(Filter('Time Entries', User().Email= Office365Users.MyProfile().Mail) , TextSearchBox1.Text, "cf_name"), "createdon", If(SortDescending1,  Ascending,Descending))

错误:

由于服务限制,无法远程评估此过滤器的一部分 . 本地评估可能会产生次优或部分结果 .

1 回答

  • 0

    尝试将应用的Onstart更改为Set(CurrentUser,User()),然后更改为User() . Email = Office365Users.Myprofile() . Mail use CurrentUser.Email = Office365Users.Myprofile()

相关问题