web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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?

I have the same question (0)
  • Lars Lohndorf-Larsen Profile Picture
    on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans