I create custom table with blob field and API for that table.
If I send POST request without blob field (not null, removed key, value pair from json), it creates new record without any problem.
Problem is, if I send it with blob field it returns this error
400:
{
/error/: {
/code/: /BadRequest/,
/message/: /A body must be provided to the request. CorrelationId: 16a11edd-0c4b-4b11-bd26-be3a072d37c3./
}
}
I have tried
1. /blobfield/: null
2. /blobfield/: /some base 64 string/
3. /blobfield/: {}
4. /blobfield/: { /Length/:0, /IsDefault/:true }
How to send blob via POST request to business central? Or is there any better way to save file in business central with API?
How to send blob via API to business central? Or is there any better way to save file in business central with API?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,524 Super User 2024 Season 2
Martin Dráb 228,469 Most Valuable Professional
nmaenpaa 101,148