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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

How to get Shipping Carrier of Shipment on Custom Sales Invoice in D365 F&O

(3) ShareShare
ReportReport
Posted on by 100
Hello folks

I want to get the shipping carrier of shipment on Sales Invoice such that whenever the Shipping carrier got updated it should be visible on Invoice. I want to know the full process how the Invoice get the Shipping carrier... I have the CustInvoiceJour table now with the help of this table how can i get the Shipping Carrier of Shipment. Please let me know from where should I take ? Note: We won’t be combining multiple shipments/packing slips under a single sales invoice. 

Also; Please let me know the full flow of when the Shipment is created after Packing slip or before packing slip. I want to know the full flow from SalesOrder -> Invoice. I also want to know the table relation from SalesTable, CustInvoiceJour to WHSShipment table. 
 
Here is the SQL Query;

select * from salestable
LEFT JOIN CustPackingSlipJour 
on CustPackingSlipJour.SalesId = SalesTable.SalesId and
CustPackingSlipJour.DATAAREAID = SalesTable.DATAAREAID
where salestable.salesid = 'C-120293'


I cant use this Query because i have only one field on Sales Invoice where I want to display only single shipment. Dont know how because this query shows two shipment for the order.



Thanks in advance :)
I have the same question (0)
  • Verified answer
    Sohaib Cheema Profile Picture
    49,679 Super User 2026 Season 1 on at
    Hi,
    Please make use of table named WHSHistoricalLoad
    You can see all logic in the form named WHSHistoricalLoad
    Please note that Loads has relationship with shipments as you can put multiple loads into a single shipment. 
  • Verified answer
    Alireza Eshaghzadeh Profile Picture
    14,849 Super User 2026 Season 1 on at
    Hi,
    The SalesLine table has a relation to WHSLoadLine. From there, you can navigate to WHSShipmentTable, where you can retrieve the CarrierCode value.
  • harshil9898 Profile Picture
    100 on at
    Hi @Alireza Eshaghzadeh, Thanks for the reply. But what in case if i only want a shipment related to Invoice ? Whenever I update the Shipping carrier on Shipment it should update it on Invoice. So i want that relation. 
  • Sohaib Cheema Profile Picture
    49,679 Super User 2026 Season 1 on at
    Hi,
    Did you manage to look at the logic written inside the form named WHSHistoricalLoad?
     
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 689

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 606 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 356

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans