Skip to main content

NC365 Staging Order Events (11260726)

IntegrationEvent: OnBeforeCreateSalesDocument

OnBeforeCreateSalesDocument(var StagingOrderHeader: Record "NC365 Staging Order Header"; var Handled: Boolean);

This event is fired right before converting a staging order into a real BC sales document (quote or order).

Parameters:

  • StagingOrderHeader - The staging order header record (table 11260700)
  • Handled - Indicates that your code has fully handled order processing. No further standard processing will take place

IntegrationEvent: OnAfterCreateSalesDocument

OnAfterCreateSalesDocument(var StagingOrderHeader: Record "NC365 Staging Order Header");

This event is fired directly after converting a staging order into a real BC sales document (quote or order).

Parameters:

  • StagingOrderHeader - The staging order header record (table 11260700)

IntegrationEvent: OnBeforeCreateSalesLine

OnBeforeCreateSalesLine(SalesHeader: Record "Sales Header"; var StagingOrderLine: Record "NC365 Staging Order Line"; var Handled: Boolean)

This event is fired before converting a staging order line into a real sales line.

Parameters:

  • SalesHeader - The new sales header for the line that is about to be created (table 36)
  • StagingOrderLine - The staging order line record (table 11260701)
  • Handled - Indicates that your code has fully handled the processing of this line. No further standard processing will take place

IntegrationEvent: OnAfterCreateSalesLine

OnAfterCreateSalesLine(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; var StagingOrderLine: Record "NC365 Staging Order Line")

This event is fired after converting a staging order line into a real sales line.

Parameters:

  • SalesHeader - The new sales header for the line that was just created (table 36)
  • SalesLine - The new sales line that was just created (table 37)
  • StagingOrderLine - The staging order line that just was processed (table 11260701)

IntegrationEvent: OnBeforeCreateStagingOrder

OnBeforeCreateStagingOrder(SalesOrder: JsonObject; var Handled: Boolean)

This event is fired before converting an incoming Magento order into a staging order.

Parameters:

  • SalesOrder - The Magento Sales Order JSON object
  • Handled - Indicates that your code has fully handled the processing of this order. No further standard processing will take place

IntegrationEvent: OnAfterCreateStagingOrder

OnAfterCreateStagingOrder(var StagingOrderHeader: Record "NC365 Staging Order Header"; SalesOrder: JsonObject)

This event is fired directly after an incoming Magento order was converted into a staging order.

Parameters:

  • StagingOrderHeader - The staging order header that was created (table 11260700)
  • SalesOrder - The Magento Sales Order JSON object

IntegrationEvent: OnBeforeUpdateStagingOrder

OnBeforeUpdateStagingOrder(SalesOrder: JsonObject; var Handled: Boolean)

This event is fired right before updating a staging order with an updated version of the Magento order.

Parameters:

  • SalesOrder - The Magento Sales Order JSON object
  • Handled - Indicates that your code has fully handled the processing of this order. No further standard processing will take place

IntegrationEvent: OnAfterUpdateStagingOrder

OnAfterUpdateStagingOrder(var StagingOrderHeader: Record "NC365 Staging Order Header"; SalesOrder: JsonObject)

This event is fired directly after updating a staging order after Magento had indicated this order was updated on the Magento side.

Parameters:

  • StagingOrderHeader - The staging order header that was created (table 11260700)
  • SalesOrder - The Magento Sales Order JSON object

IntegrationEvent: OnBeforeCreateStagingOrderLine

OnBeforeCreateStagingOrderLine(var StagingOrderHeader: Record "NC365 Staging Order Header"; SalesOrder: JsonObject; SalesOrderItem: JsonObject; var Handled: Boolean)

This event is fired before creating a staging order line.

Parameters:

  • StagingOrderHeader - The staging order header that was created (table 11260700)
  • SalesOrder - The Magento Sales Order JSON object
  • SalesOrderItem - The Magento Sales Order Item (line) JSON object
  • Handled - Indicates that your code has fully handled the processing of this line. No further standard processing will take place

IntegrationEvent: OnAfterCreateStagingOrderLine

OnAfterCreateStagingOrderLine(var StagingOrderHeader: Record "NC365 Staging Order Header"; var StagingOrderLine: Record "NC365 Staging Order Line"; SalesOrder: JsonObject; SalesOrderItem: JsonObject)

This event is fired after creating a staging order line.

Parameters:

  • StagingOrderHeader - The staging order header that was created (table 11260700)
  • StagingOrderLine - The staging order line that was created (table 11260701)
  • SalesOrder - The Magento Sales Order JSON object
  • SalesOrderItem - The Magento Sales Order Item (line) JSON object

IntegrationEvent: OnBeforeUpdateStagingOrderLine

OnBeforeUpdateStagingOrderLine(var StagingOrderHeader: Record "NC365 Staging Order Header"; var StagingOrderLine: Record "NC365 Staging Order Line"; SalesOrder: JsonObject; SalesOrderItem: JsonObject; var Handled: Boolean)

This event is fired before updating a staging order line with new information from the Magento order line.

Parameters:

  • StagingOrderHeader - The staging order header (table 11260700)
  • StagingOrderLine - The staging order line (table 11260701)
  • SalesOrder - The Magento Sales Order JSON object
  • SalesOrderItem - The Magento Sales Order Item (line) JSON object
  • Handled - Indicates that your code has fully handled the processing of this line update. No further standard processing will take place

IntegrationEvent: OnAfterUpdateStagingOrderLine

OnAfterUpdateStagingOrderLine(var StagingOrderHeader: Record "NC365 Staging Order Header"; var StagingOrderLine: Record "NC365 Staging Order Line"; SalesOrder: JsonObject; SalesOrderItem: JsonObject)

This event is fired after updating a staging order line with new information from the Magento order line.

Parameters:

  • StagingOrderHeader - The staging order header (table 11260700)
  • StagingOrderLine - The staging order line (table 11260701)
  • SalesOrder - The Magento Sales Order JSON object
  • SalesOrderItem - The Magento Sales Order Item (line) JSON object

IntegrationEvent: OnBeforeGenerateOrderSearchCriteriaQueryString

OnBeforeGenerateOrderSearchCriteriaQueryString(StoreView: Record "NC365 Store View"; var QueryString: Text; var Hanlded: Boolean)

This event is fired before the creation of the querystring with parameters that is used to retrieve new Magento sales orders.

Parameters:

  • StoreView - The store view for which orders are being downloaded (table 11260663)
  • QueryString - Any custom querystring with parameters. This one can only be used in combination with the Handled param
  • Hanlded - Indicates that your code has fully handled creation of the querystring. No further standard processing will take place

IntegrationEvent: OnAfterGenerateOrderSearchCriteriaQueryString

OnAfterGenerateOrderSearchCriteriaQueryString(StoreView: Record "NC365 Store View"; var QueryString: Text)

this event is fired after creating the querystring with parameters that is used to retrieve new Magento sales orders. You should use this event to append additional parameters.

Parameters:

  • StoreView - The store view for which orders are being downloaded (table 11260663)
  • QueryString - The querystring that was created by the standard process

IntegrationEvent: OnBeforeSalesLineQuantityValidation

OnBeforeSalesLineQuantityValidation(var Rec: Record "Sales Line"; var xRec: Record "Sales Line"; var Handled: Boolean)

this event is fired after creating the querystring with parameters that is used to retrieve new Magento sales orders. You should use this event to append additional parameters.internal procedure OnAfterGenerateOrderSearchCriteriaQueryString(StoreView: Record "NC365 Store View"; var QueryString: Text)beginend;

Parameters:

  • StoreView - The store view for which orders are being downloaded (table 11260663)
  • QueryString - The querystring that was created by the standard process

IntegrationEvent: OnBeforeSalesLineInsertValidation

OnBeforeSalesLineInsertValidation(var Rec: Record "Sales Line"; var Handled: Boolean)

this event is fired after creating the querystring with parameters that is used to retrieve new Magento sales orders. You should use this event to append additional parameters.internal procedure OnAfterGenerateOrderSearchCriteriaQueryString(StoreView: Record "NC365 Store View"; var QueryString: Text)beginend;internal procedure OnBeforeSalesLineQuantityValidation(var Rec: Record "Sales Line"; var xRec: Record "Sales Line"; var Handled: Boolean)beginend;

Parameters:

  • StoreView - The store view for which orders are being downloaded (table 11260663)
  • QueryString - The querystring that was created by the standard process

IntegrationEvent: OnBeforeSalesLineDeleteValidation

OnBeforeSalesLineDeleteValidation(var Rec: Record "Sales Line"; var Handled: Boolean)

internal procedure OnAfterGenerateOrderSearchCriteriaQueryString(StoreView: Record "NC365 Store View"; var QueryString: Text)beginend;internal procedure OnBeforeSalesLineQuantityValidation(var Rec: Record "Sales Line"; var xRec: Record "Sales Line"; var Handled: Boolean)beginend;internal procedure OnBeforeSalesLineInsertValidation(var Rec: Record "Sales Line"; var Handled: Boolean)beginend;

Parameters:

  • StoreView - The store view for which orders are being downloaded (table 11260663)
  • QueryString - The querystring that was created by the standard process

Fully automated installation and onboarding

Install via AppSource

Click on the AppSource button, install the free trial and just follow the instructions