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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

I want to add a Packing slip column to the Invoices grid on the SalesCopying form.

(5) ShareShare
ReportReport
Posted on by 147

Requirements


  1. The grid uses CustInvoiceJour as the root data source.

  2. The Packing slip value must be filterable in the grid.

  3. The value is derived at runtime (UI only) and must not be permanently saved to the database.

  4. One InvoiceId can have multiple PackingSlipId values.
    • A deterministic rule must be applied (e.g. latest PackingSlip).

  5. The Packing slip value must:

    • Display correctly for all rows immediately

    • Not require clicking a row to calculate the value

  6. The solution must:
    • Not break standard SalesCopying behavior

    • Not cause duplicate records or infinite loops

    • Be safe and performant for large dataset  

Question

What is the cleanest and recommended approach in D365FO to display a derived, filterable Packing slip value in the SalesCopying invoice grid, while correctly handling a one-to-many relationship?

Categories:
I have the same question (1)
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at
    Which of the packing slips your business users want to see isn't a technical problem. It's all about what your users want to use the field for.
     
    Therefore you (or a functional analyst responsible for that) need to talk to the user who requested the change to understand which packing slip should be displayed in the form. It's quite possible that users don't know, therefore you need to ask about the purpose, such as what business problem they're trying to address by display the packing slip ID. You may also find that the suggestion isn't really a solution of the problem (end-users usually aren't solution architects) and you'll need to create another one.
  • Statics 365 Profile Picture
    147 on at
    Thanks Martin.
    In our business process, each invoice has exactly one packing slip.
    The requirement is simply to display it and support filtering in SalesCopying.
     
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at
    If there may be more but you have always one, you can always select the first one or the last one. You could also take a random one, but your requirement is to make it deterministic.
  • Verified answer
    Assisted by AI
    Statics 365 Profile Picture
    147 on at

    Update

     

    I’ve implemented this by persisting the PackingSlipId on CustInvoiceJour when the related InventTrans is created.

    This allows the field to behave like a standard field (filterable, sortable) and matches how the business actually uses the data.

    Thanks for the guidance, Martin.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans