Personalized Community is here!
Quickly customize your community to find the content you seek.
Microsoft Customer Co-creation
Help impact how the tools and services you rely on are developed. Microsoft Customer Co-creation connects you directly with our engineers so you can provide feedback before a single line of code is written. Interested? Learn more at Microsoft Customer Co-creation
2021 Release Wave 1Discover the latest updates and new features to Dynamics 365 planned April 2021 through September 2021.
Release overview guides and videos Release Plan | Preview 2021 Release Wave 1 Timeline
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
This is the third blog post in a series of four about Virtual Entities. In my previous blog post I went through an example of how to develop a Custom Data Provider. In this one we will look at the steps needed in order to register the Custom Data Provider. In the last blog post I will put the pieces together, set up a Virtual Entity and use the Custom Data Provider that was created in the previous blog post.
When I have developed a plugin, I always use the XrmToolBox and Plugin Registration from there in order to register the assembly and add steps to the plugins etc. With Virtual Entities you cannot do that. You will need to download the SDK Plugin Registration tool and use that one. You can download it from here under SDK Tools Download.
I assume that you have built your project and that you now have an assembly to be registered. Open the Plugin Registration tool and logon to your environment.
Remember, in the previous blog post we created two plugins, one Retrieve plugin and one RetrieveMultiple plugin. Now we will register the assembly. Choose Register New Assembly and locate your .dll-file.
Now it should look like this.
Remember from my previous blog posts about Virtual Entities, we have a Virtual Entity, a Data Provider and a Data Source. Now it is time to register the Data Provider. A Data Source will be created along the way. This time, choose Register -> New Data Provider.
Fill in Data Provider Name, specify a Solution (that you have created before you clicked Register -> New Data Provider), choose your previously registered assembly and the Retrieve/RetrieveMultiple plugins.
While you are registering a new Data Provider you will get to create a Data Source. Under Data Source Entity, choose to create a new Data Source. That will create a new entity in the CDS (not to be mixed up with the Virtual Entity we will use, which we will also create – but in the next blog post).
When you choose to create a new Data Source, you get to fill in a Display Name, a Plural Name, choose a Solution and set an entity name for the Data Source.
You can see in the picture there is a NOTE text. It says that you can go to the entity and customize it if you want to get configuration data to you data provider plugins. That is what the Data Source is all about – holding configuration data which can be used in the Data Provider plugins.
Now we are done. We have registered our Custom Data Provider which we created in my previous blog post. In my next blog post I will let you know how to configure the Virtual Entity and get the different pieces together in order to get a working example in your environment.
Business Applications communities