Skip to main content
Dynamics 365 Community / Forums / Finance forum / Business Document cust...
Finance forum
Answered

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

editSubscribe (2) ShareShare
ReportReport
Posted on by 40
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
Attachments
  • Verified answer
    Community member Profile Picture
    Community member 40 on at
    Business Document customization - Sales order packing slip line with Batch number
    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
  • Kevin Xia Profile Picture
    Kevin Xia Microsoft Employee on at
    Business Document customization - Sales order packing slip line with Batch number
    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

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,183 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,733 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans