Hi All,
I have added code so that for every Shopify order brought in and converted to a sales order, it creates it as a line item on the sales order, and it works great. The only issue is that it is tied to the 'onaftercreateshippingcostsalesline' event subscriber function, and not every order that we get from Shopify, due to us having free shipping sales routinely. My question is if there is a better event subscriber to use that will import the line for every order? When sales orders are created from Shopify orders, there is a comment made. Is there an event subscriber that would connect to it? Is there a place where I can see all event subscribers?
[EventSubscriber(ObjectType::Codeunit, Codeunit::"Shpfy Order Events",
'OnAfterCreateShippingCostSalesLine', '', false, false)]
local procedure AddTaxLineToSalesOrder(ShopifyOrderHeader: Record "Shpfy Order Header";
SalesHeader: Record "Sales Header")