Hi!
I wonder...
We know that you can create a custom API and create Data trough deep insert calls.
We now have the case that we would need a Create call in which all records will be create and at the end we would receive one single base64 string with all the created records in it.
The POST call to business central should look something like this:
- The request creates several new QR-Label records with the mentioned data underneath.
- The individual records correspond to a single label, all created labels must finally be received in a single Base64 string as response.
{
"sequence": "10000",
"createLabelPDF": [
{
"itemNo": "100003",
"quantity": 5,
"showSalesPrice": true,
"showProductImage": true,
"showQRCode": true,
"copies": 5,
"type": "50100"
},
{
"itemNo": "100005",
"quantity": 8,
"showSalesPrice": true,
"showProductImage": true,
"showQRCode": true,
"copies": 1,
"type": "50100"
},
{
"itemNo": "1000010",
"quantity": 1,
"showSalesPrice": true,
"showProductImage": true,
"showQRCode": true,
"copies": 3,
"type": "50112"
}
]
}
response something like:
{
"value": "JVBERi0xLjcNJcjIyMjIyMgNMSAwIG9iagpbL1BERi9UZXh0L0ltYWdlQi9JbWFnZUMvSW1hZ2VJXQ0KZW5kb2JqCjIgMCBvYmoKPDwvVHlwZS9QYWdlL1BhcmVudCA5IDAgUi9NZWRpYUJveFswIDAgMjgzLjQ2NSAxMDQuODgyXS9Db250ZW50cyA4IDAgUi9SZXNvdXJjZXM8PC9Qcm9jU2V0IDEgMCBSL1hPYmplY3Q8PC9JbT...
Is this possible ?
Thank you so much for your help