Breaking news from around the world
Get the Bing + MSN extension
End of mainstream support for Microsoft Dynamics AX 2009, 2012, and 2012Mainstream support for Dynamics AX 2009 Service Pack 1 (SP1), Dynamics AX 2012, and Dynamics AX 2012 R2 ended Oct. 9, 2018. After that date, only security hotfixes will be provided for these three versions through the extended support period that until Oct. 12, 2021. Read more
2019 release wave 2 Discover the latest updates to Dynamics 365Release overview guides and videos Release Plan | Early Access Availability
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Talent TechTalks
Our requirement to auto cancel Sales Order if Sales Order created 3 day longer. I tested with Job as given below but I would like to know how to add in class.
static void AutoCancelSO(Args _args)
update_recordSet salesTable setting SalesStatus=SalesStatus::Canceled where salesTable.createdDateTime >= DateTimeUtil::addDays(DateTimeUtil::utcNow(), -3);
You can create a class and move the coding in it. Do you need to be able to run the class as batch job? How to do it exactly depends on this question. You can have a look at many other classes in the system to learn how.
I want to execute code automatically everyday. How to do it.
Batch jobs can be added and automatically executed.
There's a little guide: https://www.linkedin.com/pulse/microsoft-dynamics-ax-r3-batch-job-creation-through-code-gulfam
I hope it will help you.
The guide provided by Blue Wang is a good start. A similar document can be found here: docs.microsoft.com/.../walkthrough-extending-runbasebatch-class-to-create-and-run-a-batch
If you need a dialog to make the number of days configurable, you can also read the next page: docs.microsoft.com/.../using-classes-to-create-a-dialog
In that case, you need to implement pack and unpack to store the dialog values: docs.microsoft.com/.../pack-unpack-design-pattern
Business Applications communities