Forum Discussion

EugeneBoon's avatar
EugeneBoon
Copper Contributor
May 08, 2020
Solved

Display Office 365 Username when enter email address

How come we automatically display the Office 365 username and other profile field when user enter their email address into the MS Forms?
  • Damien_Rosario's avatar
    Damien_Rosario
    May 08, 2020

    Hello EugeneBoon 

     

    No it wouldn't work in the form in real time.

     

    When I use the Form and Power Automate when the form is set to my organisation only, I leave out questions like First/Last name, Department, Phone, etc as Office 365 already knows who that person is.

     

    When they submit the form:

     

    1. Use trigger When a new response is submitted to flag the new submission.

    2. Use action Get response details to retrieve the data.

     

     

    3. Then use Get user profile (V2) to source the persons Office 365 attributes to use as needed (use their email address).

     

    4. Add attributes as needed.

     

     

    As your form sounds to be configured for internal/external responders, you would use the Email field to do the look up in the Get user profile (V2). You can also add a condition in to say if the email is external, do this, and if it's internal, do this.

     

    Let me know if this doesn't make sense and I'll be happy to step you through it.

     

    Good luck

    Damien

Resources