Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Getting list of Vendors using OData

(0) ShareShare
ReportReport
Posted on by 103

Hello, I'm having a very trivial problem and I don't know what I'm doing wrong.

I am integrating into a D365 F&O test environment using OData. I am able to authenticate using access token and in Azure Active Directory applications I have assigned the Admin user to the Azure client Id I'm using, so I should be able to have access to everything. I see that I have vendors when I look at Accounts Payable > All vendors, but when I do https://[base URL]/data/Vendors all I get empty JSON that looks like this:

{
    "@odata.context": "[base URL]/data/$metadata#Vendors",
    "value": []
}

Does anyone know what I am doing wrong?
  • André Arnaud de Calavon Profile Picture
    294,099 Super User 2025 Season 1 on at
    RE: Getting list of Vendors using OData

    Hi tl2022,

    There are way more data entities in Dynamics 365 Finance and Operations compared to OData endpoints in Business Central. There is only some generic information for OData on F&O. Like Magno mentioned, a list with entities and fields is available in the application itself, but in many cases, the fields names are not clear without viewing exported data first.

  • Suggested answer
    Magno Pereira Profile Picture
    2,431 Super User 2025 Season 1 on at
    RE: Getting list of Vendors using OData

    As far as I know, there's not. 

    An easy way to list the OData points that you have available is to navigate through [base URL]/data. In the D365 you can also go to the Data Management data entities and see the target fields.

  • tl2022 Profile Picture
    103 on at
    RE: Getting list of Vendors using OData

    Hi Magno, I was looking at that section of the documentation as well, and was trying to find some documentation like the page below for Business Central, where they give me the details of all the fields for each entity. Do you know where I can find a similar resource for F&O?

    learn.microsoft.com/.../dynamics_vendor

  • Suggested answer
    Magno Pereira Profile Picture
    2,431 Super User 2025 Season 1 on at
    RE: Getting list of Vendors using OData

    It means that for some reason, this data entity has been updated by MS. It could be new fields, for example. And not to break processes that are using this data entity, a new version of the data entity is released.

    I recommend always using the latest version available. Even if the versioning keeps old versions working, at some point they can be deprecated.

    About the documentation, you can find it here: Integration between finance and operations apps and third-party services - Finance & Operations | Dynamics 365 | Microsoft Learn

  • tl2022 Profile Picture
    103 on at
    RE: Getting list of Vendors using OData

    Hi Magno. I don't know what this is, but I was able to get the Vendors by using cross-company=true. Are there any differences between Vendors, VendorsV2, and VendorsV3 feature-wise?

  • tl2022 Profile Picture
    103 on at
    RE: Getting list of Vendors using OData

    Hi, I added 'cross-company=true' and after removing response size limitation on Postman was able to get back what looks to be all the vendors. Thanks!

    In Azure Active Directory applications, I have the integration using an "Admin" user that has the "System administrator" role. Currently just trying to get things up and running, but later will definitely create a integrations user instead of using admin user to do this.

    Is there any API documentation page available for F&O like they have for Business Central (learn.microsoft.com/.../). Or do I have to just query the metadata for the entities and figure it out myself?

  • Suggested answer
    André Arnaud de Calavon Profile Picture
    294,099 Super User 2025 Season 1 on at
    RE: Getting list of Vendors using OData

    Hi tl2022,

    The "Vendors" entity name is correct. It is case-sensitive, but you used the starting capital correctly. What is the default startup company for your user? Odata is taking the default company, unless you add the next parameters in your url: ?cross-company=true

    E.g. https://[base URL]/data/Vendors?cross-company=true

    Do you have the system administrator role or another business role? If you don't have the system administrator role, you would need to have  permissions on the data entity for the vendors to be able to access them using public services, like OData.

  • Magno Pereira Profile Picture
    2,431 Super User 2025 Season 1 on at
    RE: Getting list of Vendors using OData

    Has database sync been completed successfully?

  • tl2022 Profile Picture
    103 on at
    RE: Getting list of Vendors using OData

    I get error: Stack trace: An empty SQL statement descriptor list has been encountered.

  • Suggested answer
    Magno Pereira Profile Picture
    2,431 Super User 2025 Season 1 on at
    RE: Getting list of Vendors using OData

    Can you try [base URL]/data/VendorsV3?

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,099 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans