Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2022 Release Wave 1 PlanDynamics 365 release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.
2022 release wave 1 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I have a form and a button, that on this button i want to run a runbasebatch class with the selected record on form.(not multiselect)
For example, if i have selected on form a record from purchtable, when i click this button which is the runbasebatch class, i want to filter all the items related to purchline of this purchid selected on grid.
Can someone help me to pass the record selected on runbasebatch class? I am using microsoft dynamics ax2012
Thanks in advance.
You can retrieve the record in the main method of the class itself.
static void main(Args args)
if (args.record().TableId == tableNum(PurchTable))
purchTable = args.record();
You can then write a parm method in your class to either pass the purchTable buffer or PurchId, depending on how the class is designed.
Are you trying run this class as a batch job or will you just use this class as a normal class.
If you runing it as a batch job then you need use pack/unpack
If not then you can set button's datasource property and at main method use args for getting caller record.
Business Applications communities