Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

Create customers using ODATAV4 Api

Posted on by 26
Hi ,
 
I am a salesforce developer and trying to iintegrate salesforce with Business central.
 
The business central is a On premises server and will look like this 
 
 
With the above API i can get the accounts.
 
Through same way I am trying to create customer using below API
 
 
But I am getting error as like below
 
{
/error/: {
/code/: /BadRequest_NotFound/,
/message/: /No HTTP resource was found that matches the request URI 'https://odata.eclouds.com:8548/eclouds_SF_TEST/ODataV4/Company(%27CASCADE%20-%20SETUP%27)/Customer'. CorrelationId: 485553a1-bc4c-4f42-ae45-df723a366658./
}
}
 
And I am not able to find proper API documentation of ODATAv4.
 
How to create a customer ?
Categories:
  • Community member Profile Picture
    Community member 17 on at
    Create customers using ODATAV4 Api
    Hi Mohana Yadav,
     
    As by your guidance I used Basic Authentication and things are looking good to me. Long time struggle came to end for me now :). Thanks again
  • Verified answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,125 Super User 2024 Season 2 on at
    Create customers using ODATAV4 Api
    You can use BASIC authentication for both APIs and ODATA.
    You need to be created as a user though.
  • Community member Profile Picture
    Community member 17 on at
    Create customers using ODATAV4 Api
    Hi Mohana Yadav,
     
    I am not sure how to find the BC version.
     
    I can use basic Authentication but seems its enabled in lower environemnt only . this is what we got from BC techinical team
     
    The BC API for your version of Business Central only supports basic authentication, and most actions should be possible with the ODATA endpoints, so we recommend against using the API endpoints in production until you are on a version of Business Central that supports OAuth for API access. If it is necessary to keep the API endpoints enabled for now, see below for connection info:
     
    So Basic Authentication for API endpoints only , right?
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 59,125 Super User 2024 Season 2 on at
    Create customers using ODATAV4 Api
    Which version of BC are you using?
    Why cant you use Basic authentication?
     
    You can use ODATA endpoints also but there will be performance issues.
  • Community member Profile Picture
    Community member 17 on at
    Create customers using ODATAV4 Api
    Hi YUN Shu,
     
    We asked for API version and this is what the reply got from BC
     

    The BC API for your version of Business Central only supports basic authentication, and most actions should be possible with the ODATA endpoints, so we recommend against using the API endpoints in production until you are on a version of Business Central that supports OAuth for API access. 
     
    So I feel better using the ODATA endpoints only?
     
    Your thoughts please?
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,110 Super User 2024 Season 2 on at
    Create customers using ODATAV4 Api
    Hi, have you published the customer list page to the Web Service? It is recommended that you check this page first. If it is not there, you need to add it manually.
     
    However, I personally recommend using the API for better performance.
    Create customers:
     
    PS: Standard API for Dynamics 365 Business Central SaaS (Get, Post, Patch, Delete and Basic query parameters – filter, orderby, select…)
     
    Hope this helps.
    Thanks.
    ZHU

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,963 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans