Wednesday, February 2, 2022

Get office 365 User Email Address powerapps

 Introduction:

In this blog, we will see how to get office 365 user details by filtering logged in user

Implementation Steps:

 

1. Login in to https://make.powerapps.com


2. Create or Open Existing Application


3. Add Office365User Datasource




 











4. Now Add a text field to Populate some details from Office 365.


5. How to Get user Email ?

 

                 User().Email  //Using this syntax we can get email address of user


6. How we can get the Office 365 user Details from PowerApps?


First(Office365Users.SearchUser({searchTerm:User().Email})).UserPrincipalName) // Get User PrincipalName

First(Office365Users.SearchUser({searchTerm:User().Email})).DisplayName) // Get User Display Name

First(Office365Users.SearchUser({searchTerm:User().Email})).Mail) // Get User Mail

First(Office365Users.SearchUser({searchTerm:User().Email})).City) // Get User City


Above i have provided some sample details, you can get more details too :)


No comments:

Post a Comment

How to Run Microsoft Flow for Every one Month

Introduction: In this Blog we will see how to Run Microsoft Flow for Every one Month. Implementation Steps:   1. Navigate to  https://make.p...