IntegrationEvent: OnBeforeSync

OnBeforeSync(NC365Item: Record "NC365 Item"; var MageItem: JsonObject; var SyncResult: Enum "NC365 Sync Result")

This event is triggered just before a item data object is sent to Magento.If you want to manipulate any data on the item object then this is the event to use.

Parameters:

  • NC365Item - The original web item record involved in this sync task
  • MageItem - The JSON data object that is sent to Magento
  • SyncResult - Set this to SyncResult::Skip if you want to prevent this object from being synchronized


IntegrationEvent: OnBeforeImportItemFromMagento

OnBeforeImportItemFromMagento(var MageItem: JsonToken; MagentoId: Integer; SKU: Text)

This event is fired right before a Magento item is imported into Business Central.In case you want to add some prework in the item import process, then please use this event.

Parameters:

  • MageItem - The incoming Magento item data object
  • MagentoId - The ID of the incoming item
  • SKU - The SKU of the incoming item


IntegrationEvent: OnAfterImportItemFromMagento

OnAfterImportItemFromMagento(var NC365Item: Record "NC365 Item"; var MageItem: JsonToken)

This event is fired directly after a Magento item is imported into Business Central.In case you want to add some logic on top of the item import process, then this is the event to work with.

Parameters:

  • NC365Item - The web item record that was created
  • MageItem - The incoming Magento item data object