Skip to main content

Notifications

Customer Service forum

Contact entity web api query not working

Posted on by 180

why does the below query not bring back any results?

https://xxxxxxxxxx.api.crm.dynamics.com/api/data/v9.0/contacts

whereas, it works fine for accounts xxxxxxxxxxxx.api.crm.dynamics.com/.../accounts

thanks!

Categories:
  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Contact entity web api query not working

    You messed up the things already :) create a support ticket with MS to solve this issue.

  • CRMISKEY Profile Picture
    CRMISKEY 180 on at
    RE: Contact entity web api query not working

    Hi Arun,

    Thanks! i am getting this error when i navigate to Settings -> Solutions

    Error

    An error has occurred.

    Try this action again. If the problem continues, check the Microsoft Dynamics 365 Community for solutions or contact your organization's Microsoft Dynamics 365 Administrator. Finally, you can contact Microsoft Support

    so, i am not sure if i can import a solution that can fix this issue.

    Thanks!

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Contact entity web api query not working

    Hi,

    if you have both sys admin & sys customizer then I don't think it will matter what permissions are on sys customizer because privileges in CRM works as cumulative (i.e. combined permissions from all the roles). Either you have remove the sys admin roles  for this user or something else has happened.

    As suggested above, you need to login with some other user with sys admin permissions to revert the changes.

    Hope this helps.

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Contact entity web api query not working

    Try to export & import the system customizer role from different environment through solution.

    Login with some other user who is having  Sys Admin & edit the role.

    Don’t play around those security roles. Share the error you are getting.

  • CRMISKEY Profile Picture
    CRMISKEY 180 on at
    RE: Contact entity web api query not working

    Hello Arun, Ravi, thanks for the great responses. I made the situation worse by changing the privilege from User level to Org level for system customizer role. Though I had both Sys Admin and Sys Customizer, System Customizer had only user level for the contact entity so i wanted to change it to Org level and try, now it throws an error right away if i navigate to contact view and also not letting me go back to security roles view to revert the permission back. any idea?

    Thanks!

  • Suggested answer
    Arun Vinoth Profile Picture
    Arun Vinoth 11,613 on at
    RE: Contact entity web api query not working

    Sys admin & sys customizer should have org level privileges so permission is not a problem. Hope they are not custom roles.

    Otherwise all the contact records you are looking for may be inactive. Verify in Inactive contacts view or advanced find.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Contact entity web api query not working

    So this means either there are no contact records in the system or you do not have privileges to read contact records.

    Try creating a new contact record and see if it is visible. This will help isolate the issue if with permission or something else.

    Hope this helps.

  • CRMISKEY Profile Picture
    CRMISKEY 180 on at
    RE: Contact entity web api query not working

    I tried with 8.2 as well, no luck.

    Ravi, I don't get any records even if i directly go to Contact entity. I have system administrator and system customizer roles though. any idea?

    thanks!

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: Contact entity web api query not working

    Hi,

    What happens if you directly got to the Contact entity? Do you see any contact records in CRM?

    If you have records and have read access then the data will return.

    Hope this helps.

  • Suggested answer
    Datadvancer Profile Picture
    Datadvancer 353 on at
    RE: Contact entity web api query not working

    Can you use your previous version,e.g  â€¦/api/data/v8.2/accounts to try again?

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

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... 290,802 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,129 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,154

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans