Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

how to change inventbatchId when inserting it

(1) ShareShare
ReportReport
Posted on by 15
how to change inventbatchId when inserting it production order form
  • MariamW Profile Picture
    MariamW 15 on at
    how to change inventbatchId when inserting it
    Hi André

    Thank you for your response. I’d like to clarify my question.

    I am trying to change the InventBatchId of a production order when reporting it as finished. However, when I attempt to update the InventBatchId using the following code:
     [ExtensionOf(formstr(ProdParmReportFinished))]
     final class MyClass{
     void init() {
    ////the part where i want to change inventbatchid

    inventDim.InventBatchId = MyInventBatchId;
    inventDim.InventDimId = InventDim::findOrCreate(inventDim).InventDimId;

    it does not seem to work as expected.

    I would like to understand at what point the InventDimId is written or created during the process of creating a production order so that I can assign my custom InventBatchId to it.

    Could you or someone in the community help clarify this behavior or provide guidance on how to properly assign a custom InventBatchId during the Report as Finished process for a production order?

    Thank you in advance for your assistance!


  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,462 Super User 2024 Season 2 on at
    how to change inventbatchId when inserting it
    Hi Mariam,
     
    Can you please elaborate on your question? Is this a functional or technical question? Can you provide with more details about the intended process? What type of help do you need from the community?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,462 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,551 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans