web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

API needing two service endpoint calls

(0) ShareShare
ReportReport
Posted on by 5

Hi - my first time posting, so apologies if this is in the wrong forum!.

We are trying to connect to the Leads collection of Dynamics from a Data Virtualisation product. We are connecting through the OData connection, and are able to read data from collections such as accounts, opportunities, contacts etc. Yet when we try to  connect to the Leads collection it returns no data.

We've been informed that we need to make two endpoint calls to the in order to return the data. So the first call would be https://mycompany.crm4.dynamics.com/api/data/v9.0/  and the second would be https://mycompany.crm4.dynamics.com/api/data/v9.0/leads . Can we do this in one call? so we can return the Leads collection data? or what does this call need to look like?

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: API needing two service endpoint calls

    Hi Christopher Darling,

    Can you explain what your first call is for? Per my experience, when your oauth authentication is successful and have the corresponding security role with the user, you just need to make the second call to get the leads' data.

  • Verified answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: API needing two service endpoint calls

    Hi,

    I don't think you need two endpoints call. Have you checked the user under which you are making odata calls have Read access on Leads entity in dynamics crm. Check the security role assigned to that user and then verify the permission on Lead entity.

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 100 Super User 2025 Season 2

#2
Suresh Kulla Profile Picture

Suresh Kulla 72 Super User 2025 Season 2

#3
DAnny3211 Profile Picture

DAnny3211 54

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans