NC365B2B Sales Document Events (11261216)

Created by Tys van den Heuvel, Modified on Wed, 26 Oct, 2022 at 2:24 PM by Tys van den Heuvel

IntegrationEvent: OnAfterCreateDocumentLine

OnAfterCreateDocumentLine(var SalesDocumentLineRecRef: RecordRef; var SalesDocumentLine: JsonObject)

This event is fired directly after a sales document line was constructed and before it is added to the document that will be synchronized.Use this event if you want to add, update or remove line level data.

Parameters:

  • SalesDocumentLineRecRef
  • SalesDocumentLine


IntegrationEvent: OnBeforeSync

OnBeforeSync(var SalesDocumentRecRef: RecordRef; var SalesDocument: JsonObject; var SyncResult: Enum "NC365 Sync Result")

This event is fired right before a sales document is synchronized. Use this event if you want to manipulate header level data.

Parameters:

  • SalesDocumentRecRef
  • SalesDocument
  • SyncResult - Set this to SyncResult::Skip if you want to prevent this object from being synchronized


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article