Posts

How to Show And Hide Button Based on a Security Role

Image
  Make one solution from https://make.powerapps.com/ . Make sure to connect to the right environment from the upper right corner Navigate to Solutions from the left side and click on New solution Allocate: Display Name: Ribbon - Table (Here: Table name is the Display Name of your table) Publisher Open Solution. Click on Add existing. Click on Tables. Search table. Select it. Click on Next Click Add. Make sure 'Include all objects' and 'Include table metadata' are unchecked. Add below code in your existing web resource (JScript) or create new one // A namespace defined for the sample code // As a best practice, you should always define  // a unique namespace for your libraries var Person = window.Person || {}; (function () {     "use strict"     var userSettings = Xrm.Utility.getGlobalContext().userSettings;     this.enableCheckAccess = function (_primaryControl) {         var isEnableFormConfirm = false;         try {             if (CheckSpecificRoleWithA

How to share Model-driven App to External Users or How o use Model-driven without purchasing any license

Image
Add a user to your azure active directory. Login to  azure . Click on the Show portal Menu. Click on users. Invite external user  Fill in the information and click on Invite  Log in to the Power platform admin centre . Open the environment in which you need to grant access to the app. Click on settings Expand User + permissions and then click on Users Add the user for which you need to send the invitation. Assign a role  Login to power apps Navigate to the apps Select the app which you want to share with the user and click on the share button The step will tell you the role which you can assign on step number 15. Login to the  admin centre from office 365   Expand billing tab  Click Licenses  Open PowerApps per app baseline access is the free license  Assign license Make URL to log in:  https://apps.powerapps.com/mobile/redirect?appid=< a pp-id >&tenantid=< tenant-id >&playerchannel=FieldServiceMobile&sourceurl=https%3A%2F%2F<org-url-without-https>%2Fmain.