Announcements
Filter(export,Office365Users.UserProfileV2(User().Email).mail in OMDRepp.Email)
Ah! To my best knowledge, the "IN" operator intend right side to be a table or at best a single-column table value and the left side to be a single value. If this is the case, we are close to arrest the problem. Apparently, Office365Users.UserProfileV2(User().Email).mail returns a single email string. OMDRepp.Email should be a table or column of email strings to check if the user’s email exists in that list. If OMDRepp.Email is a single value or not a table/column, the "IN" operator will produce error or fail?
Office365Users.UserProfileV2(User().Email).mail
OMDRepp.Email
One important area is if OMDRepp is a table, you need to extract the column Email as a single-column table, e.g., OMDRepp.Email returns a column, but sometimes you need to use ShowColumns or Distinct to get a proper table.
OMDRepp
Email
ShowColumns
Distinct
Guard with ShowColumns function:
Filter(export, Office365Users.UserProfileV2(User().Email).mail in ShowColumns(OMDRepp, "Email"))
And if we want to be sure to get distinct email:
Filter(export, Office365Users.UserProfileV2(User().Email).mail in Distinct(OMDRepp, Email).Result)
With( {_Mail: Office365Users.UserProfileV2(User().Email).mail}, Filter( export, OMDRepp.Email = _Mail ) )
With( { _Mail: Office365Users.UserProfileV2(User().Email).mail, _Data: Filter( export, Enterprise= "Other" ) }, Filter( _Data, _Mail in OMDRepp.Email ) )
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 424
WarrenBelz 355 Most Valuable Professional
11manish 290