Hi,
Jobs in Ax2012 are replaced by runnable classes in Dynamics 365 for operations. Runnable class is used to test a piece of code. I created a runnable class to display data from custTable returned by a simple sql query.
Step 1: On the required project, right click select Add > New item(as shown below)
Step 2: From the available list of Dynamics 365 items, select code > Runnable class(Job) and provide the name. I have given name as CG_SelectCustomer. Click on Add button to the class to the project.
Step 3: Include the below code and save the project. Build the solution.
Note: Referenced packages are Application Platform and Application Suite.
Step 4: Right click on the runnable class(in solution explorer) and select "Set as Startup Object" option.
Step 5: Select Option Debug(From tool bar) > Start Without Debugging to see the output on the new browser window.
Output:
Regards,
Chaitanya Golla
*This post is locked for comments