PowerApps Zero to Hero – Chapter 4 – Ways to create Canvas Apps
PowerApps Zero to Hero – Chapter 3 – Setup D365 and Power Platform Trial Environment
PowerApps Zero to Hero – Chapter 2 – Types of PowerApps
PowerApps Zero to Hero – Chapter 1 – Introduction of PowerApps and PowerApps Fx
PowerApps – Share Canvas App with External Users
- The partner uses their own identities and credentials; Azure AD is not required.
- You don\’t need to manage external accounts or passwords.
- You don\’t need to sync accounts or manage account lifecycles.
- Azure Active Directory Subscription (Trial is also fine)
- Power Platform Environment (Trial is also fine)
- Canvas App (create a new app or use an existing one that you want to share with external users)
Open newly created guest user
Go to https://make.powerapps.com and share the canvas app with the guest user.
Open the app that is being shared with you.
- Guests can only be assigned the User role, and not the Co-owner role, for apps shared with them.
- Power Apps can\’t recognize guests that authenticate by using Azure AD direct federation or email one-time passcode authentication.
- Power Apps per-app plans are scoped to apps in a specific environment, so they can\’t be recognized across tenants.
PowerApps Portal – Control Azure AD User Access
Hi Everyone,
- Azure AD Subscription (Trial is also fine)
- Dynamics 365 License (Trial is also fine)
- PowerApps Portals (of any type)
2. Create a trial (subscription-based) environment in the Power Platform admin center.
3. Install PowerApps Portal (ignore if you already have). Click here for the installation steps.
4. Configure Azure AD Conditional Access Policy.
Step 5: Turn Off the Enable Security defaults settings and choose My organization is using Conditional Access. Click Save
Note: Choose Microsoft PowerApps and Microsoft Flow apps only if you want to restrict Model-driven apps, Canvas apps, and Power Automate along with PowerApps Portals.
Step 12: Click on Grant under Access controls > choose Block Access > Select
Power Automate – Check String Variable is Empty or Null
Hi Everyone,
PowerApps – Get Dynamics 365 Logged In User Role in Canvas App
Hi Everyone,
- Create a mobile app for the Sales Team.
- Sales Agent will login into the app to track his/her daily appointment, track customer location, capture meeting notes, and assign tasks to the sales manager for approval
- Sales Manager will log into the app in order to track the sales team\’s performance and approve the request made by a sales agent.
- PowerApps License (PerApp or Per User) or can use Trial as well.
- Dynamics 365 License or use Trial as well.
- Must have two users. One user must have a Sales Person Role and another user must have a Sales Manager role to test the flow.
- Download the Power Automate from my GIT Repository.
- Click on My Flows from the Left Panel and Click Import
- Browse the downloaded Power Automate zip file and Hit Upload.
- Landing Screen – where the user will be landed after a successful login.
- Profile Screen – Display logged-In user information
- Error Screen – This screen will display an \”Insufficient Permissions\” message if a user doesn\’t have the appropriate role assigned in the CRM Application
- My Roles – This screen will display all security roles assigned to the logged-in canvas app user.
- Sales Agent or Sales Manager will log in to the app.
- If Sales Person has Sales Person security role assigned in D365, Redirect the user to Profile Screen else Redirect to Error Screen
- If Sales Manager has Sales Manager security role assigned in D365, Redirect the user to Profile Screen else Redirect to Error Screen
Use the following expression on OnSelect property of \’View my Roles\’ button.
Automate Dynamics 365 & Power Platform Deployment using Azure DevOps CI/CD
Hello Everyone,
- Dynamics 365 Source Instance – Dev
- Dynamics 365 Target Instance – SIT/UAT/PRE-PROD/PROD
- Azure DevOps Subscription – Can create trial using this link and refer to this article for instructions
- Azure Subscription – for Dynamics 365 Service Connection – Can use the trial as well
- Need to have a solution available in your Dynamics 365 Source Instance
- Need to have some configuration (Master) data available in your source instance
- Dynamics 365 Instance (Source and Destination both) Administrator rights
- Schema File Available – if you want to deploy master data or portal configuration as well.
- Click the Gear Icon in the bottom left corner to get access to Project Settings
- Choose Repositories
- Click on the Permissions tab
- Search Project Collection Build Service
- Add the Project Collection Build Service
- Once you have added the Project Collection Build Service, choose “Allow” on the Contribute Permission. (from the Right panel)
- Now Search Build Service user (Project Name + “Build Service”)
- Change Contribute to “Allow”
Create a new Repository to store Dynamics 365 Extracted solution files
Now In order to Export the solution from your Source Dynamics 365 Instance, You need to choose the authentication type in order to make the connection with your instance.
- Azure App Registration
- To register an App in Azure, follow my this article. Go to the \’Azure AD App Registration\’ section and perform Step 1 to Step 6.
- In Step 7, instead of clicking on Microsoft Graph, click on Dynamics CRM and Opt User_Impersionation Permission and then Hit Add Permission.
- Step 8 will remain the same.
- One additonal step is to capture the Azure AD Tenant ID as well for later use
- If you find any trouble performing the above steps. Please watch this video.
- After performing all the above steps. Don\’t forget to Capture the Application ID, Client Secret Key and Azure AD Tenant ID for later use.
- Application User Creation in Dynamics 365 Source Instance
- Go to https://make.powerapps.com > Choose your environment > Click on Advanced Setting
- Go to Security > User > Select Application Users View > Click on New
- Choose Application User form and fill User Name, Application ID, Full Name and Primary Email (as highlighted below) and Hit Save.
- Once you save the record, Application ID URI and Azure AD Object ID will get automatically autopopulated from your Azure Tenant
- Give System Administrator Security Role to the user.
Add Command Line task
Add following Command Lines to Push the Extracted Solution Zip files to the Repository
Add Publish Artifacts Task in order to push your solution zip file to the Artifacts. Fill the details as shown below
Create a Variable to hold Solution Name. This variable name, we have already been used \’$(SolutionName)\’ in all the above steps.
Once CI Pipeline Build gets successful. Click on Artifacts to view the Solution Zip file (as ashown below)
Go to your Repository > Solution Zip file has been extracted to multiple files based on solution components
Create a CD (Release) Pipeline –
Provide Artifacts Location, so that your release pipeline could download the solution zip file from that location. (as per below)
Click on Stages in order to add the Tasks to import the solution in your Target Dynamics 365 Instance.
Note: You need to create a new Service Connection in order to connect with your Target Dynamics 365 Instance, same as the steps we have performed earlier to connect the Source Dynamics 365 Instance.
Set Solution Input File path. Click on Browse and choose the pah as per below and Hit Ok.
Add Publish Artifacts Task
Add Power DevOps Tool Installer Task and leave as is.
Add Import Configuration Migration Data Task and Fill the details as per below