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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Custom Connector for Business Central

(0) ShareShare
ReportReport
Posted on by 20

Hello

I'm new to Business Central space, facing an issue on custom connector for a table, extension which I've created

It's working as expected in BC

While in custom connector I'm getting 404 

{
"error": {
"code": "BadRequest_NotFound",
"message": "Bad Request - Error in query syntax. CorrelationId: a3eba416-893e-40a9-96d6-a0bb72528b6c."
}
}

My inputs are

Host = api.businesscentral.dynamics.com
Base URL = /v2.0/bc3a3a81-9843-4b43-b81f-90c9cf3f06c0/Sandbox/
Authentication type = Base


Creating Actions Get (tried both URL) 
URL=
ODataV4/Company({CompanyID})/ClientInquiry
ODataV4/Company(10a127a4-77ff-eb11-bb73-000d3a2b9e0a)/ClientInquiry 

CompanyID= 10a127a4-77ff-eb11-bb73-000d3a2b9e0a

(Getting CompanyId using - https://api.businesscentral.dynamics.com/v2.0/bc3a3a81-9843-4b43-b81f-90c9cf3f06c0/Sandbox/api/v2.0/companies)

Request URL looks like - https://api.businesscentral.dynamics.com/v2.0/bc3a3a81-9843-4b43-b81f-90c9cf3f06c0/Sandbox/ODataV4/Company({CompanyID})/ClientInquiry

I can see the service running in Postman, so no issue in schema.

What am I missing here ?

Appreciate any help on this

Thank you

anand

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    159 on at

    A custom connector for use in Power Platform I assume? If so you cannot use objects exposed through OData. You must instead create an api page. I did a video on this, which you can find on this page: joshanglesea.wordpress.com/.../

  • ASTRI Profile Picture
    20 on at

    Thanks for sharing.

    I've checked my end point

    api.businesscentral.dynamics.com/.../ClientInquiry

    It's working as expected. Returning data.

    Not getting where the issue is.

    Thanks

  • Suggested answer
    JAngle Profile Picture
    159 on at

    Your URL is like below. However, you cannot use OData URL's with a custom connector for Power Platform - highlighted in yellow.

    api.businesscentral.dynamics.com/.../ODataV4/Company('CRONUS%20IN')/ClientInquiry

    Something like the below is what the custom connector requires - again the yellow showing important parts: 

    api.businesscentral.dynamics.com/.../{TenantID}/{Instance}/api/JA/customgroup/v1.0/companies({CompanyID})/prodorders

    re-watching the video may help.

    You may find you need to create a custom API page: Developing a custom API - Business Central | Microsoft Docs

    Failing that you can use the standard connector which has all these end points: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/ 

  • ASTRI Profile Picture
    20 on at

    It worked.

    Many thanks.

  • Tabrez Ajaz Profile Picture
    787 on at

    @josh,

    Nice detail. I have already used custom connector by creating custom API in BC oon-pre.

    But i also want to do Posting from power app in my case I want to post Transfer Order.... Do u know how to call posting method for posting the Transfer Order.

  • Suggested answer
    JAngle Profile Picture
    159 on at

    From a power app call a power automate flow. In the flow use the http connector to call a codeunit in BC published as a web service which then handles the posting. This blog shares a method of doing this for a different topic: joshanglesea.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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,382 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,625 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,376

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans