Skip to main content

Notifications

Announcements

No record found.

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

PrepromptModifyContract() or PreRunModifyContract() - AX 2012

Posted on by 1,319
Hi All,
 
Currently we are entering fromDate and toDate while scheduling the customer account statements batch job, we want to make this process for automatic selecting the fromDate and todate for specific date of every month.
found the methods : PrepromptModifyContract() and PreRunModifyContract()  but not sure how I can write a code for that, please advice.
Classes where fromDate and toDate is utilizing : CustAccountStatementExtController
 
Regards,
Akbar
  • Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    PrepromptModifyContract() or PreRunModifyContract() - AX 2012
    You can use prepromptModifyContract() to initialize values before showing a dialog to users. Then you may allow them to change values.
    Use preRunModifyContract() if you want to set values automatically without giving users a chance to see or change the values.

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