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
How can I call a class from a Job and then pass arguments to dialog of that class without showing the dialog but needed for setting of local variables and executing running method of that class?
What class are you talking about? Maybe a class inheriting from RunBase?
If you don't want to use a dialog, your goal shouldn't be "pass arguments to dialog". You should skip the GUI completely and set values directly. The usually approach in AX 2009 is using parm* method for this purpose. For example:
MyClass myClass = MyClass::construct();
For testing purposes I don’t want to modify the original class and want to run the class via a job if it’s possible.
It's impossible to say what's possible unless you explain what class you're talking about. You may have absolutely any code in the class, and there can't be an universal answer for any code that can be written.
Running code in a job is possible - that's the only thing that a job is for. Of course, it's not for production use - there you need classes, menu items and such things.
for example call Tutorial_RunbaseBatch via job without modifying the original class and pass arguments (custAccount, date) and run.
All right, so you're indeed talking about a class inheriting from RunBase.
Unfortunately I don't know how Tutorial_RunbaseBatch is implemeted. If it doesn't have methods that allow changing the state from outside, you can add the logic without changing the class by creating a child class.
Business Applications communities