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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Shopify Tax Addition Logic

(0) ShareShare
ReportReport
Posted on by 16
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")
Categories:
I have the same question (0)

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…

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
BillurSamdancioglu Profile Picture

BillurSamdancioglu 95 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 83 Super User 2025 Season 2

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans