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, ...
Suggested Answer

Business Document customization - Sales order packing slip line with Batch number

(1) ShareShare
ReportReport
Posted on by 83
Hi people,
I want to add the batch number from the sales order packing slip on the business document.
 
However the report always prints the batch number from the first position in the sales order.
 
I mapped the batch number from:
$SalesPackingSlipLines/>Relations/CustPackingSlipJour/<Relations/CustPackingSlipTrans.CustPckSlpJour/inventDim()/inventBatchId
 
Two positions in this example with different batch numbers
//
 
On the report I get for the two positions the same batch number.
 
//
 
In the report I have configured a repeating section content control for the lines.
 
Any idea why the report prints only one batch number?
 
Thanks,
Pasqual
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    You need to make sure that you are correctly referencing the data source of the batch number field in the repeating part content control. Check that the logic of retrieving the batch number fields from the related table is correct. Or you can check the loop logic of your control by repeating parts of the content. Make sure it displays the batch number of the shipping line for each sales order.
    Best regards,
    Kevin
  • Suggested answer
    PasqualD Profile Picture
    83 on at
    Hi Kevin,
    thanks for your reply. The reason was indeed the wrong mapping in the related table. So correct mapping lead to the correct result:
    $SalesPackingSlipLines/>Relations/CustPackingSlipTrans/>Relations/InventDim/inventBatchId
     
    Thanks again!
     
    Best regards,
    Pasqual

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 282 Super User 2026 Season 2

#2
Aayush Tiwari Profile Picture

Aayush Tiwari 219

#3
Subra Profile Picture

Subra 211 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans