I'm building a web application that will connect to MS Dynamics [cloud].
What would be the REST endPoint for connecting to a Custom Entity in a non-Managed Solution?
https://abc.dynamics.com/api/data/v9.0/CustomEntity ???
Can the WebAPI only access Entities in the default solution?
Thanks!
That's great, thanks!
Every entity in D365 has entitysetname attribute. EntitySetName is use for performing operations using WebAPI.
You can use Metadata browser available in XrmtoolBox to know entity set name for your custom or system entity.
Another approach is to retrieve Metadata of entity.
[Organization URI]/api/data/v9.0/EntityDefinitions(LogicalName='new_customentity')
Search for EntitySetName attribute.
You can use entity metadata.
Hi,
Solutions has nothing to do with the web api endpoint and access i.e. it doesn't matter in which solution you have the entity.
Ideally you can access the custom entity by passing the schema name of the entity i.e.
Custom Entity named new_caserequests: https://testorg.crm6.dynamics.com/api/data/v9.0/new_caserequests
Account entity: https://testorg.crm6.dynamics.com/api/data/v9.0/accounts
By executing the below endpoint, you will get list of all entities from which you can check the actual url to be used
https://testorg.crm6.dynamics.com/api/data/v9.0/
Here is the official documentation on starting WEB API
Hope this helps.