Posts

Runnable classes: Implementing Finds and Inserts

Image
To call a Runnable class from URL, https://usnconeboxax1aos.cloud.onebox.dynamics.com/?cmp=USMF&mi=SysClassRunner&cls=[ClassName] We want to be able to pass parameters to this class thru the URL, something like this, https://usnconeboxax1aos.cloud.onebox.dynamics.com/?cmp=USMF&mi=SysClassRunner&cls=[ClassName]&id=001 To achieve this, we use the URLUtility system class found in the ApplicationFoundation package. URLUtility urlUtility = new URLUtility(); Str courseId = urlUtility.getQueryParamValue('id'); INF_DMS_Courses FoundCourse; FoundCourse = INF_DMS_Courses::find(courseId); Info(strFmt("Course ID: %1, Name: %2, Term: %3", FoundCourse.CourseId, FoundCourse.Name, FoundCourse.Term)); Same goes for insertions, URLUtility urlUtility = new URLUtility(); Str courseId = urlUtility.getQueryParamValue('id'); Str courseName = urlUtility.getQueryParamValue('name'); Str courseTerm = urlUtility.getQueryParamValue('term

Workflows: New module not available in workflow category properties

Image
 A new module name should be added to the ModuleAxapta enum in order for it to appear in the workflow category Module property drop-down list. AOT > Data Types >  Base Enums > ModuleAxapta: Create extension and add a new element.

Can't see the Workflow button on the form menu?

Image
    You can only create a workflow for a custom module within the WorkflowConfiguration form, which is available, by default, only on the standard modules, such as the Human resources module. Also make sure you are running it on either Edge or IE. After setting everything up, go to Human resources (or any of the other standard modules) > Human resource workflows > New > Create workflow >  You should be asked to sign in   And now you can add your approvals, user permissions, and activate the workflow.  

Error deploying an SSRS report: "The parameter panel layout for this report contains more parameters than total cells available"

An obvious solution to this would be to add more cells in the design manually. But a hard reset seems to work more often than not. Create a new design; do not duplicate. Copy old design contents to new design and change the sizes and location accordingly. Delete the old design and rename the new design to that of the old design's.

How do you create a Data Entity?

Image
Data entities are an abstract form of the physical tables that you have in your database. They are used to import and export data into the system. Add a Data Entity as a new item in your project and connect a data source to it. Rebuild and run database synchronization. Navigate to Modules > System administration > Workspaces > Data management. Here you can import data into your data source or export the existing data, via the newly created data entity. Prior to running a job, make sure you have the right services up and running: Start the batch job service from Services > Microsoft Dynamics 365 Unified Operations: Batch Management Service > Start; remember to stop when done as it consumes a lot of resources. Make sure the service Microsoft Dynamics 365 Unified Operations: Data Import Export Framework Service is in the running state as well.