Skip to main content

Notifications

Power Platform Community / Forums / Building Power Apps / need to get the logged...
Building Power Apps
Unanswered

need to get the logged in user from model driven forms

Posted on by 41
Hi  , need to get this logged in user from model driven form and pass it to http flow, everything is working except this email address, it looks this line of code not getting the email from the model driven form
const userEmail = Xrm.Utility.getGlobalContext().userSettings.emailAddress;
 
 
Categories:
  • Suggested answer
    Inogic Profile Picture
    Inogic 755 on at
    need to get the logged in user from model driven forms
    Hi,
     
    You cannot retrieve the email address directly from “Xrm.Utility.getGlobalContext().userSettings.emailAddress”
    In order to get the logged in User details first we have to retrieved the UserId and then the details of the User from where you can get the Email address of that user which is stored in ‘domain name’.
    Please refer to the below screenshot

     
    Hope this helps.
     
     

    Thanks!

    Inogic Professional Services: Power Platform/Dynamics 365 CRM
    An expert technical extension for your techno-functional business needs
    Drop an email at crm@inogic.com 
    Service: https://www.inogic.com/services/ 
    Tips and Tricks: https://www.inogic.com/blog/ 

Helpful resources

Quick Links

Welcome to the Power Platform…

We are thrilled to unveil the newly-launched Power Platform Communities!…

Community Update Sept 16…

Power Platform Community Update…

Welcome to the new Power Platform Community!…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 140,745

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,355

Leaderboard