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...
Unanswered

Custom API for Contact Business Relation returning “No HTTP resource found” in Business Central

(0) ShareShare
ReportReport
Posted on by 100

Hi Everyone,

I am trying to create Contact Business Relations using a custom API page in Microsoft Dynamics 365 Business Central. I have created and published the API page in a sandbox environment, but when I try to call the endpoint I receive the following error:

No HTTP resource was found that matches the request URI

Request URL used:

https://api.businesscentral.dynamics.com/v2.0/Sandbox-2026-02-20/api/xxxapi/xxxxgBC/v2.0/companies(fxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx)/contactBusinessRelations

 

AL Code for Custom API Page:

page 50122 BusinessRelationship
{
    APIGroup = 'xxxxxxxBC';
    APIPublisher = 'xxxapi';
    APIVersion = 'v2.0';
    ApplicationArea = All;
    Caption = 'businessRelationship';
    DelayedInsert = true;
    EntityName = 'ContactBusinessRelation';
    EntitySetName = 'ContactBusinessRelations';
    PageType = API;
    SourceTable = "Contact Business Relation";

    layout
             {
area(content)
{
repeater(Group)
{
field(contactNo; "Contact No.")
{
}
field(linkToTable; "Link to Table")
{
}
field(no; "No.")
{
}
field(businessRelationCode; "Business Relation Code")
{
}
}
}
}
}


The Body of HTTP request is as follow

{
  "no""xxxxx",
  "contactNo""xxxxx",
  "businessRelationCode""Vendor",
  "linkToTable""Vendor"
}

The extension is published successfully and other custom APIs in the same extension are working correctly. However, this API for the Contact Business Relation table is not accessible through the endpoint.

Is there anything special required when exposing the Contact Business Relation table through a custom API (for example adding fields like SystemId or defining ODataKeyFields), or could the issue be related to the API endpoint URL format or the EntitySetName?

Any suggestions or guidance would be appreciated.

I have the same question (0)
  • Manish Sharma Profile Picture
    99 on at
    Not sure on the table if that can be used in API.
    What method are you using? GET, POST or PATCH.
     
    Can you try these,
    Entity Name should be in camel case.
    Try adding ODataKeyFields property and systemid field.
     
     

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,960 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,084 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,047 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans