Hello,
I was trying to hide a button based on security role.
I created javascript which checks and then hides button for "D365 FS Mobile Resource" security role.
hideButtonForFSMRole = function () { debugger; var showButtonFlag = true; var roles = Xrm.Utility.getGlobalContext().userSettings.roles; var role_name = new Array(); roles.forEach(function (item) { role_name.push(item.name); }); if(role_name.length>0){ for(i=0;i
How do I hide button only when Create privileges of "D365 FS Mobile Resource" is set to none.