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 :
Business Central forum

Link Contact to Customer via API Page in AL language

(0) ShareShare
ReportReport
Posted on by

Hello!
I faced with issue when i want to create customer via API, than create ContactPerson (post request API Page written on AL language) and then i want to linked customer and contact together.
But when i set CompanyNO or CompanyName at POST request to Contact APIPage, i got error:
No of Business Relations must be 0, actual value 1.

Are there any way to link contact to customer? Maybe it is possible to set PrimaryContactCode at Customer or something like that?

Thanks!

Categories:

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans