The Dynamics Business Machine represents an innovative solution to modernise how business processes, logic, and flows are created and maintained in Microsoft Power Platform.
DBM is being reset around its original product vision: a designer that lets users define complete business cycles from portal to back office and back to portal again, with processes, sub-processes, stages, rendered forms, and JavaScript-first action logic.
Start your journey with DBM and make your business flows as agile and efficient as they should be.
You can read a quick overview of the solution and its functionality here.
DBM currently contains prototype/reference implementation assets. The active roadmap restarts product delivery at a new R1 while preserving useful existing code paths as reference material.
The reset product direction includes:
- Process hierarchy designer: Define a parent process, child processes under parent stages, and deeper child processes where the business flow needs them.
- Generic process contract: Use user-defined process types, actor roles, stage kinds, work kinds, statuses, outcomes, and visibility rules.
- Stage-owned child process links: Keep the parent process anchored on the owning stage while a child process becomes the active working surface.
- Rendered form experience: Show the process to business users on actual model-driven forms.
- DBMScript actions: Define JavaScript-first actions for stage, form, field, backend, and button triggers.
- Back-office runtime: Execute stage transitions, statuses, form behaviour, actions, routing, tasks, SLA/KPI, and support operations.
- Portal continuity: Add actual portal rendering and return-path behaviour after the back-office runtime is stable.
- Platform tooling: Manage source sync, solution packaging, versioning, tree/schema tooling, jobs, and ALM.
Below is the active high-level roadmap planned for DBM.
R0: Engineering foundation and governanceR1: Process/stage designer and actual form renderR2: DBMScript and action foundationR3: Back-office runtimeR4: Back-office operationsR5: Portal runtime and return pathR6: Reuse, templates, artefacts, and documentsR7: Platform tooling and ALMR8: Enterprise maturityR9: AI-assisted platform
The tracked release plan is the source of truth: docs/roadmap/release-plan.md.
Official tracked product documentation now lives under docs/.
Start with:
- docs/architecture/product-principles.md
- docs/architecture/current-state-baseline.md
- docs/roadmap/release-plan.md
Local planning drafts, execution notes, and working material remain outside Git in _codex/.
First import the solution found at Dynamics365-YsCommonSolution. Next, import the latest solution from the 'releases' page.
Once installed, open the Yagasoft app, navigate to the 'Dynamics Business Machine' page, and you will see the following screen:
- Start by clicking the "Add New Resource" button to create a new file within the editor.
- Provide a unique file name that ends with
.js. - Set a display name for easy reference.
- Once the file is created, start writing your JavaScript code.
- After writing the code, save it as a web resource. This ensures that the script is properly version-controlled and easily integrated into Dynamics environments for deployment.
Same goes for JSON files. After adding the file, add a property, name it, and then write your code for the property.
DBM comes equipped with a range of functionalities that help create, update, delete, and retrieve data from Dataverse, all using a unified JavaScript-based approach.
An object that is passed to the engine by the calling context. It is usually the Target row (entity).
$this
The Dataverse service.
$service
create(entity: Entity): Guid
const id = $service.create(new Ys.Entity('contact'));update(entity: Entity): void
const e = new Ys.Entity($this.logicalName, $this.id);
e.attributes.lastname = 'Test!';
$service.update(e);delete(id: Guid): void
$service.delete(Guid.parse('3a47b1ba-9537-ef11-8409-000d3adabdf3'));retrieve(logicalName: string, id: Guid, columns: string[] | string): Entity
const r = $service.retrieve($this.logicalName, $this.id, 'firstname');
$log.info(r.attributes.firstname + ' ' + r.attributes.lastname);retrieveMultiple(fetchXml: string, count?: number, page?: number): Entity[]
const rm =
$service.retrieveMultiple(`
<fetch>
<entity name='contact'>
<attribute name='createdon' />
<order attribute='createdon' descending='true' />
</entity>
</fetch>`);
$log.info(rm.length);
$log.info(rm[0].attributes.createdon);
$log.info(rm[0].attributes.parentcustomerid);For this initial release, DBM has a custom step that takes the following parameters:
- Script file: the web resource containing the script to run.
- Script file ID: the unique path of the file.
- Inline script: hard code a script to run.
- Inline script type: what type of script is hard coded.
- JSON script action: action to execute on a JSON script if given.
You must provide a value for parameters 1, 2, or 3. Param 4 is required if 3 is given. Param 5 specifies the action if a JSON script is given.
- Check Releases page for the later changes
- Kick-started project
Copyright © by Ahmed Elsawalhy (Yagasoft) -- GPL v3 Licence