![](https://nocodehr.com/wp-content/uploads/2020/10/029C-1024x512.png)
Having access to HR data is a key for smooth operations of an organization and also to define a clear people vision and achieve excellent customer satisfaction. There are a variety of questions that need to be answered on a day to day basis by the HR teams across the globe. Especially in complex market conditions impacted by disrupting changes such as COVID 19, it becomes all the way more importatnt.
Dynamics 365 Human Resources ships with a good set of standard reporting and analytics capabilities, seamless integration with Microsoft Excel and well structured and organized data model. But there was one key missing piece to this puzzle capability of seamlessly plugging in a business intelligence tool like Power BI and the capability to do create and publish real time reporting and analytics.
CDS Virtual entities for D365HR is part of key architectural enhancement that will help in unleashing the data access capabilities of D365HR for BI reporting and Integration.
Are you curious and want to try to enable this and give it a go. Read on to know how?
What components need to communicate in your application architecture?
There are 3 components of Microsoft that needs to communicate with each other:
- Azure AD app for D365HR Virtual entities – for authentication and authorization
- Power app for D365HR Virtual entities – deploy virtual entity data package on CDS
- Dynamics 365 Human Resources app
All 3 components have their own configuration to be done before we are able to get to the fun part of accessing the data via virtual entities on CDS. Follow the steps below to know how to setup these components.
Steps to define the configuration:
Step 1: Azure Active Directory: Install D365HR VE Azure app
- Navigate to https://portal.azure.com/#home
![](https://nocodehr.com/wp-content/uploads/2020/10/A001-1-1024x392.png)
- Select app registrations from the menu
![](https://nocodehr.com/wp-content/uploads/2020/10/A002-1-1024x392.png)
- Click on New gristration
![](https://nocodehr.com/wp-content/uploads/2020/10/A003-2-1024x392.png)
- Create a new registration as illustrated in the screenshot below (Make a note of the application name in a notepad)
![](https://nocodehr.com/wp-content/uploads/2020/10/A004-3-1024x392.png)
- Copy the application client ID and add it to the notepad
![](https://nocodehr.com/wp-content/uploads/2020/10/A005-3-1024x392.png)
- Navigate to Certificates and secrets
![](https://nocodehr.com/wp-content/uploads/2020/10/A006-3-1024x392.png)
- Add a new client secret
![](https://nocodehr.com/wp-content/uploads/2020/10/A007-3-1024x392.png)
- Copy the client secret ID and keep it on a notepad (You can’t get this ID later – make sure you have copied it)
![](https://nocodehr.com/wp-content/uploads/2020/10/A008-3-1024x392.png)
Step 2: Power platform CDS Environment: Install D365HR VE power app
- Open https://admin.powerplatform.microsoft.com/ and select your D365HR connected CDS environment
![](https://nocodehr.com/wp-content/uploads/2020/10/A009-3-1024x392.png)
- Open Dynamics 365 apps from the menu
![](https://nocodehr.com/wp-content/uploads/2020/10/A010-3-1024x392.png)
- Select Install apps
![](https://nocodehr.com/wp-content/uploads/2020/10/A011-3-1024x392.png)
- Select Dynamics 365 HR Virtual entity app from the list and click on Next
![](https://nocodehr.com/wp-content/uploads/2020/10/A012-3-1024x392.png)
- Check the terms agreement and click on Install
![](https://nocodehr.com/wp-content/uploads/2020/10/A013.png)
- Please wait for the installation to complete
![](https://nocodehr.com/wp-content/uploads/2020/10/A014.png)
Step 3: Power platform CDS environment: Register the Azure AD app on D365HR VE power app
- Open https://admin.powerplatform.microsoft.com/ and select your D365HR connected CDS environment
![](https://nocodehr.com/wp-content/uploads/2020/10/B01-1024x336.png)
- Click on the environment URL
![](https://nocodehr.com/wp-content/uploads/2020/10/B02-1024x395.png)
- Select the Solution Health Hub and click on the advance find option (top right corner)
![](https://nocodehr.com/wp-content/uploads/2020/10/B03-1-1024x392.png)
- Search for Finance and Operations Virtual Data Source Configurations and click on Results
![](https://nocodehr.com/wp-content/uploads/2020/10/B04-1024x282.png)
- Select Microsoft HR Data Source
![](https://nocodehr.com/wp-content/uploads/2020/10/B05.png)
- Detour: Take a short trip back to https://portal.azure.com to copy the tenant id
![](https://nocodehr.com/wp-content/uploads/2020/10/B05B-1024x676.png)
- Detour: Copy the Tenant ID from properties and paste it on your notepad
![](https://nocodehr.com/wp-content/uploads/2020/10/B05B2.png)
- Register the HR data source with the details as illustrated in the screenshot (Time to open the notepad😋). The only additional information you need is the URL of D365HR application till the namespace
![](https://nocodehr.com/wp-content/uploads/2020/10/B06-1024x536.png)
At this point Azure Active Directory and CDS D365HR Virtual entities apps are able to communicate with each other. Lets connect our data source D365HR with the CDS D365HR VE app. Follow the steps below:
Step 4: Dynamics 365 Human Resources: Register the 2 D365HR VE apps from Azure and Power platform
- Open D365HR application and navigate to System administration and Azure Active Directory applications
![](https://nocodehr.com/wp-content/uploads/2020/10/C01-1-1024x392.png)
- Add the AAD application (You need the notepad for the application ID
![](https://nocodehr.com/wp-content/uploads/2020/10/C02A-1024x391.jpg)
- Add one more AAD application with the details below:
- Client Id: f9be0c49-aa22-4ec6-911a-c5da515226ff
- Name: Dynamics 365 HR Virtual Entity
- Admin user ID
![](https://nocodehr.com/wp-content/uploads/2020/10/C02B-1024x431.png)
At this point the CDS D365HR VE app is able to communicate with D365HR with authentication and authorization via Azure Active Directory
We are almost done… one last step to go to expose the data entities on CDS…🤣🤣🤣
Step 5: Generate D365HR Virtual entities on CDS
- Open D365HR application and navigate to System administration > Common Data Service configuration
![](https://nocodehr.com/wp-content/uploads/2020/10/D01-1-1024x392.png)
- Select Virtual entities > Select all and click on Generate
![](https://nocodehr.com/wp-content/uploads/2020/10/D02-1-1024x392.png)
- If you see the message “You virtual entity request has been sent, updates will be shown in the action center”. The magic has started.
![](https://nocodehr.com/wp-content/uploads/2020/10/D03.png)
Step 6: CDS: Access D365HR virtual entities and D365HR data… Let the magic begin!!!
- Open https://make.powerapps.com/ and navigate to data > entities
- Change the entity filter to show all entities and add a text filter mshr to see view the list of D365HR virtual entities!!!
![](https://nocodehr.com/wp-content/uploads/2020/10/image-9-1024x216.png)
Want to know more about Dynamics 365 Human Resources… Stay tuned and subscribe to my blog😀:
Do you think my blog helped you? Then please share it with your network on LinkedIn!