Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

Web API REST endPoint for Custom Entity in non-default Solution

(0) ShareShare
ReportReport
Posted on by 15

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!

  • ideka Profile Picture
    15 on at
    RE: Web API REST endPoint for Custom Entity in non-default Solution

    That's great, thanks!

  • Suggested answer
    Kalpavruksh D365 CoE Profile Picture
    2,545 on at
    RE: Web API REST endPoint for Custom Entity in non-default Solution

    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.

  • Mihir Maruti Kadam Profile Picture
    702 on at
    RE: Web API REST endPoint for Custom Entity in non-default Solution

    You can use entity metadata.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: Web API REST endPoint for Custom Entity in non-default Solution

    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/

    webapi1.png

    Here is the official documentation on starting WEB API

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/use-microsoft-dynamics-365-web-api

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans