Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Unanswered

Issue with creating Sales Orders via C# / SOAP

(0) ShareShare
ReportReport
Posted on by 5

We have created a C# application that uses the BC SaaS SOAP salesDocuments web service that was enabled by default.  Sales Orders are being created without issue within BC.  However when checking the Created At and Created By fields in the Sales Header & Sales Lines tables, we discovered that they are blank.  It has been suggested to me that we are not supplying a data element necessary to trigger these fields to be populated.  We are having similar issues with the Modified At and Modified By fields in both the Sales Header & Sales Line tables when updating existing Sales Orders using API calls against custom code units.  Would anyone have advice as to what we might be missing in order to get these triggers to fire and have the timestamps populated into the Created & Modified fields?

  • Lars Lohndorf-Larsen Profile Picture
    on at
    RE: Issue with creating Sales Orders via C# / SOAP

    Hello,

    I have problem finding fields "Created At" and "Created By" in Sales Header table, maybe they are system-fields, or part of an extension?

    In any case, I think that salesDocuments is based on page 6402, so depending on the version you use (<= BC 14, or >= BC15), you can edit the page, or create a page extension to add this on the OnInsertRecord trigger. Or if these are custom fields, also check if this kind of logic should be added to the table. So, a bit of dev may be needed but I hope this helps you?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 953

#2
YUN ZHU Profile Picture

YUN ZHU 848 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 602

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans