Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Need to update or create SalesQuotes in Business Central with Workdescription and a Responsibility Centre

(0) ShareShare
ReportReport
Posted on by 5

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

  • Verified answer
    Gianfranco C. Profile Picture
    Gianfranco C. 370 on at
    RE: Need to update or create SalesQuotes in Business Central with Workdescription and a Responsibility Centre

    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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans