Notifications
Announcements
No record found.
How to get the current user login in the portal then input it in a field?
*This post is locked for comments
You could try adding a hidden html input having a liquid notation as value {{user.id}} like this then just get the value of this field with a js/jquery.
<input id="userID" style="display:none" type="text" value="{{user.id}}" />
Hope this solve your question.
Regards,
Macoy
Hello Vin
May i know which version of Portal are you using? 7X or 8X?
Thanks
James
hi emmanuel,
im using dynamics 365 portal add-on.
on my latest portal instance, it can now autopopulate with current user login
Hi Macoy,
this was very useful to me thank you ,,
suggest me a tutorial to know the variables that I can reach from the portal page
I need to reach to the "Account" data for the current portal user:).
Ahmmad
Hi Ahmmad,
How exactly you reached to Account data. Steps please.
Thanks,
Harsh
Please ignore I got it, in case if any one needed it quite direct if you are using contact to login on Portal 365-
{{ user.parentcustomerid.id}}
To use inside JQuery: var accountId = '{{ user.parentcustomerid.id}}';
If you want to get this from the outside(fe angular app hosted in powerapps portals) you can find this on:
It works perfect. It is the id you use to enter.
Thanks!
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2