Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

JS Code or with Liquid get UserID, ContactID and Account ID in Power Portal

(0) ShareShare
ReportReport
Posted on by 5

My first post here, so be gentle........

I am new to Dynamics, have some experience with power automate en power apps. 
Also I have been developing with JS, PS jQuery etc. 

I have been working on a power service portal for our customers to be able to login.

We also have a Nintex form (it's a given so I can't change this) that needs two parameters to get the right information for the signed in user >> (Customer).

In Dynamics we use only the local authentication method at this time. 

My problem is that I can not find a way to retrieve the information about the logedin user. 

I found something in the Web developer tool console wich gives me a Username, but i can not get too the Account ID or User ID. 

When we would have AAD B2C setup (I have this in my Dev Environment) the AAD User Object ID is visible in the console. 

Liquid did not work for this. I tried the User object and the Entity object. 

https://docs.microsoft.com/en-us/power-apps/maker/portals/liquid/liquid-objects

Any tips how I can get this information for a local signed in User? 

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.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans