Search code examples
dynamics-crmdynamics-crm-onlinedynamics-365dynamics-crm-webapi

How to set which solution when creating Entity definition using the WebAPI


Context

I would like to create a custom Entity using the Dynamics 365 WebAPI. When reading the official documentation Create and update entity definitions using the Web API I can not find traces where to set which Solution is the target of the Entity Creation

Question

How and where to set in which Solution is the target the Create Entity operation?


Solution

  • It would appear that after creating the entity you could use the Web API's Add Solution Component Action.

    In this article, David Yack has an example of using this action to add a Web Resource to a Solution via his Web API helper library.

    This article lists the component types. Entity is 1.