Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum
Unanswered

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

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? 

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans