Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Get and Set Default pa...
Finance forum
Answered

Get and Set Default parameters values through X++ Code for Reset & Schedule Jobs operations of Batch Order

Posted on by 742

Hey Experts,

Process path:

Production Control > Production Orders > All Production Orders

I want to Reset Batch order through Code and also want to Schedule Job through code.

When we do these process manually, all default parameters populate automatically.

Can anyone please tell class name from where these parameters get populated automatically?

As I am doing through this X++ code, I don't want to pass parameters manually, but wanted to pass them through standard system process.

Thank you in advance

154554.png

73014.png

  • Rhushikesh R Profile Picture
    Rhushikesh R 742 on at
    RE: Get and Set Default parameters values through X++ Code for Reset & Schedule Jobs operations of Batch Order

    Thank you Judy for help. :)

  • Verified answer
    huijij Profile Picture
    huijij 19,803 on at
    RE: Get and Set Default parameters values through X++ Code for Reset & Schedule Jobs operations of Batch Order

    Hi Rhushikesh,

    You can set Default parameters values through X Code refer to the method enableFields() of class ProdParmStatusDecrease

    prodParmStatusDecrease_ds.object(fieldNum(ProdParmStatusDecrease,CancelDerivedPurch)).setValue(prodParmStatusDecrease.WantedStatus  == ProdStatus::Created ? NoYes::Yes : NoYes::No);

    1212.PNG

    regards

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,835 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,526 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans