Hi All,
Issue: in powerapps Portal jquery is not working.(unable to get web role of logged in user)
i am facing issue with jquery, where in a function i want to take the user's current logged in web role.
i have written function which works fine in DEV but doesen't work in SIT environment after deployment.
I have checked all code and related files, web pages, permissions are fine,
Even when i put a debugger; the debugger doesen't show any code after stopping at debugger.
A code in DEV works perfectly fine to get the user's current role the only problem is with SIT
I am still learning portal, so even basic answers also appreciated.
Please find below code which is working perfect in DEV environment.
$(document).ready(function() {
debugger;
// Get Loggedin user name and Loggedin user account name
var user = "{{ user.fullname }}";
var account = "{{ user.parentcustomerid.name }}";
Thanks,
Tejas.