Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 general forum

Regarding The 'RetrieveMultiple' method does not support entities of type 'similarityrule'

(0) ShareShare
ReportReport
Posted on by 25

Hi,

I am trying to use the DynamicsCRM's WebAPI (ODataV4) to query for data. Among all the entities, i could not query for the following entities that throws 400 Bad Request with the following message.

HTTP/1.1 400 Bad Request - (0x80040800) The 'RetrieveMultiple' method does not support entities of type 'similarityrule'

This happens for the following entities.

calendarrules Its mentioned in the doc that GET/POST/PUT/DELETE is not supported for this entity. docs.microsoft.com/.../calendarrule

complexcontrols (In the doc its mentioned as For internal use)
postregardings (In the doc its mentioned as For internal use)
principalentitymaps
similarityrules
subscriptionmanuallytrackedobjects (In the doc its mentioned as For internal use)
subscriptionstatisticsofflines
subscriptionstatisticsoutlooks

What i would like to know is, how can i detect the fact that these entities are not queriable.  I am expecting some sort of flag or indication in the corresponding entity type's metadata.  With what i looked so far, there was no property signalling this fact.  Please let me know, if i could look up for any Json property in the entity type's metadata to know that these entities can not be queried using the Web API (OData endpoint).

For the entity type's metadata i am using the endpoint - /api/data/v9.0/EntityDefinitions(LogicalName='calendarrule')

or /api/data/v9.0/EntityDefinitions(LogicalName='similarityrule')

Please suggest.

  • NKB1 Profile Picture
    NKB1 25 on at
    RE: Regarding The 'RetrieveMultiple' method does not support entities of type 'similarityrule'

    Thanks Clofly.  Looks like there is property or flag in the entity type's metadata that indicates whether an entity is internal or can not be queried using Web APIs.

  • NKB1 Profile Picture
    NKB1 25 on at
    RE: Regarding The 'RetrieveMultiple' method does not support entities of type 'similarityrule'

    Thanks a lot Leo, i am using the Web API and not C#. I tried the fetchXML style with the Web API for such entities, but it throws the same 400 bad request.

    I option for us is to maintain a black list and hide these entities from querying.

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Regarding The 'RetrieveMultiple' method does not support entities of type 'similarityrule'

    Hi Partner,

    You could import a solution called metadata browser into your CRM and view all entitie's metadata.

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/browse-your-metadata 

    After imported, it will display as a application menu.

    pastedimage1565057728592v4.png

    pastedimage1565057702904v3.png

    Regards,

    Clofly

  • Verified answer
    LeoAlt Profile Picture
    LeoAlt 16,331 on at
    RE: Regarding The 'RetrieveMultiple' method does not support entities of type 'similarityrule'

    Hi partner,

    Unfortunately, there is no such a tag in each entity properties. But the supported entities were listed in this DOC.

    https://docs.microsoft.com/en-us/previous-versions/dynamicscrm-2015/developers-guide/gg678557(v%3Dcrm.7)

    pastedimage1565056942154v1.png

    If you are using C#, to resolve this issue, you could use "ExecuteFetchRequest" method instead.

    https://crmtipoftheday.com/796/long-live-executefetchrequest/

    Hope it helps.

    Best Regards,

    Leo

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans