Hi all
I have the requirement to create sales quotes and sales orders in Business Central On-Prem for a customer via the API, and I need to also populate the Work Description and Responsibility Centre fields associated with these quotes and orders.
I somehow can't seem to do this because the API endpoints available do not have these fields available. How can I go about getting those fields available through the API? Any good documentation link or instruction on how to expand the API would be useful.
Best Regards
JohannS
hello, in the standard actually the two fields are not exposed.
my advice is to create and expose the page API by copying it from the standard, and insert the 'Responsibility Centre' field and also add it to the "Sales Order Entity Buffer" and "Sales Quote Entity Buffer" tables, which transfer the data to the Sales Header.
"Work Description" is a blob field, and in the transfer codeunits, the flow fields are skipped.
You have to create in your new API page a text field that you export, and then use the codeunit "Temp Blob" to go to the "Work Description" of the newly created record.
Don't forget to help the community by Verifying the answer and Like it if your question has been answered. It will let others know that the topic has verified answer.
Thanks & Regards,
Gian
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... 291,232 Super User 2024 Season 2
Martin Dráb 230,064 Most Valuable Professional
nmaenpaa 101,156