Announcements
Yes, the AccountEnabled property from Office 365 Users can be used to determine if a user account is active or disabled.
Just updated the code - Could you please try:
With({ _data:PO_Requestors }, DropColumns( RenameColumns( AddColumns( AddColumns( Distinct( Filter( _data, !IsBlank(Requestor.Department) && !IsBlank(Requestor.Claims) && //Filter - Only include active users IfError( Office365Users.UserProfileV2(Requestor.Email).accountEnabled, false ) = true && (IsBlank(DataCardValue8.Text) || StartsWith(Requestor.DisplayName, DataCardValue8.Text)) ), Requestor.DisplayName ), _Record, LookUp( _data, Requestor.DisplayName = Value ).Requestor ), Email, _Record.Email, Claims, "i:0#.f|membership|" & Lower(_Record.Email), Department, "", JobTitle, "", Picture, "" ), Value, DisplayName ), _Record ) )
Best regards, Valantis
✅ If this helped solve your issue, please Accept as Solution so others can find it quickly. ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :). 🏷️ For follow-ups @Valantis. 📝 https://valantisond365.com/
💼 LinkedIn
▶️ YouTube
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