Skip to main content

Notifications

Announcements

No record found.

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

Create Route Card Journal + line + Post by X++

Posted on by 529

Hello All,

I want to create a Route card journal to RAF all nonFinished operations of a selected production by x++.

Date (current), OprNum, Quantity, Operation Complete are going to be set by code.

pastedimage1588251196522v1.png

  • Suggested answer
    CBNestor Profile Picture
    CBNestor 529 on at
    RE: Create Route Card Journal + line + Post by X++

    The Code from Priyanka is working perfect for what I need. Please someone to change this thread as Solved

  • Verified answer
    CBNestor Profile Picture
    CBNestor 529 on at
    RE: Create Route Card Journal + line + Post by X++

    I found this code from Priyanka which am testing and is looking good so far. Just Need A hand with the applying the resource https://community.dynamics.com/365/financeandoperations/b/dynamicsofax/posts/ax2012-r2-cu7-x-code-to-create-and-post-route-card-journal-for-production-order

    ProdRoute.WrkCtrIdCost returns empty value. if I select the Opr Num manually in the Routecard Journal Line it gets the Resource/workCtrId automatically. How can I get it by code?

    pastedimage1588582998742v1.png

  • CBNestor Profile Picture
    CBNestor 529 on at
    RE: Create Route Card Journal + line + Post by X++

    Hi Allen,

    Our company behaves differently from what standard AX job registration is meant to be.

    instead of waiting for the workers to RAF their jobs. When need the Production Manager to RAF as/when they consider pertinent.

    I have already developed a button to stop all active jobs as for the manager to RAF production with the amount of hours accrued at that moment. but I also want to the routes to be finished. instead of letting the production manager to make journals for every production he needs to finish.

    thanks a lot for your help. I really appreciate a hand with this

  • Allen Dejoux Profile Picture
    Allen Dejoux on at
    RE: Create Route Card Journal + line + Post by X++

    Hi,

    Can you clarify your question ? What is the business purpose?

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans