Hi, so i built an API Page for the customer bank account table and i cannot modify or delete entries i created ( Error says those calls are not allowed for customerBankAccount with EdmType „Collection“ . How do i solve this?
Cheers.
Hi, so i built an API Page for the customer bank account table and i cannot modify or delete entries i created ( Error says those calls are not allowed for customerBankAccount with EdmType „Collection“ . How do i solve this?
Cheers.
Hi,
Make sure you are not using the ID in the URL.
For PATCH/POST requests, ID (system ID) of the particular record you need to needs to be appended in the Request URL.
Example:
api.businesscentral.dynamics.com/.../<tenant ID>/Sandbox2/api/v2.0/companies(<Company ID>)/customerBankAccount(764a3891-89b1-ec11-8aa5-000d3a77213a)
Similar request (FYR):
Hope this helps!
Thanks
André Arnaud de Cal... 291,791 Super User 2024 Season 2
Martin Dráb 230,488 Most Valuable Professional
nmaenpaa 101,156