Skip to main content

Process Triggers

Overview

A Trigger defines how and when a new process instance is created. FlowOn BPM provides multiple ways to initiate processes, giving you flexibility to start workflows automatically based on data changes, programmatically via APIs, or in response to business events.

Trigger MethodDescriptionUse Case
FlowOn Logic RecipeAutomatically start processes based on CRM entity eventsData-driven automation
Process Action (API)Invoke process programmatically as an actionExternal integrations, custom UI
FlowOn EventsStart process when a business event is raisedEvent-driven architecture

FlowOn Logic Recipe

Processes can be triggered automatically through FlowOn Logic Recipes. A Recipe defines what actions should happen when specific events occur on a Dynamics 365 entity.

Supported Entity Events

EventWhen It Fires
Pre CreateBefore a record is created
Post CreateAfter a record is created
Pre UpdateBefore a record is updated
Post UpdateAfter a record is updated
Pre DeleteBefore a record is deleted
Post DeleteAfter a record is deleted

Sync vs Async Execution

When triggering a process from a Recipe, you can choose synchronous or asynchronous execution:

ModeBehavior
SynchronousProcess starts immediately within the same transaction
AsynchronousProcess starts in the background; CRM operation completes immediately

Example Recipe Configuration

Recipe: Start Loan Approval on New Application
Entity: Loan Application
Event: Post Create
Condition: Application.Status = "Submitted"
Action: Start Business Process "Loan Approval Process"
Mode: Asynchronous
info

For detailed information on configuring Recipes, see the FlowOn Logic Recipe documentation.

Process Action (API)

When a process has Process Action enabled, it is exposed as a callable action that can be invoked programmatically.

Enabling Process Action

When creating or editing a process, enable the Process Action setting to expose the process as an API endpoint.

Use Cases

CallerDescription
FlowOn Logic FlowStart a process as part of a larger automation workflow
Another ProcessLaunch sub-processes from On Entering or On Exiting automation
External SystemIntegrate with third-party applications via API
Custom UITrigger processes from custom buttons or forms
Power AutomateCall from Microsoft Power Automate flows

Calling a Process Action

Process Actions can be called like any Dynamics 365 custom action:

MethodDescription
Web APICall via Dynamics 365 Web API endpoint
FlowOn LogicUse the "Run Business Process" step in a Flow
SDKInvoke via Dynamics 365 SDK

Example: Calling from a Logic Flow

Flow: ProcessNewOrder
Steps:
1. Validate Order
2. Calculate Pricing
3. RUN BUSINESS PROCESS
Process: Order Fulfillment Process
Entity ID: Order.Id
→ Store output: ProcessInstanceId
4. Update Order with ProcessInstanceId

FlowOn Events

FlowOn Events provide an event-driven approach to starting processes. When a business event occurs, an Event Instance is created, which triggers an Event Handler that calls the subscribed process.

How It Works

  1. Event Occurs — A business event is raised from any source (Logic Flow, Process, external system)
  2. Event Instance Created — An Event Instance record is created to capture the event
  3. Handler Triggered — The Event Handler associated with this event type is invoked
  4. Process Called — The handler calls the subscribed process, creating a new Process Instance

Event-Driven Benefits

BenefitDescription
Loose CouplingEvent sources don't need to know about the processes they trigger
ScalabilityMultiple processes can respond to the same event
FlexibilityAdd or remove process subscriptions without changing the event source
AuditabilityEvent Instances provide a clear record of what triggered each process

Example Event Configuration

Event Definition: OrderPlaced
Properties: OrderId, CustomerId, TotalAmount, OrderDate

Event Handler: StartOrderFulfillment
Event: OrderPlaced
Action: Start Business Process "Order Fulfillment"
Execution Mode: Async
Input Mapping:
- Process.RegardingId = Event.OrderId
info

For detailed information on configuring Events and Handlers, see the FlowOn Logic Event documentation.

Trigger Comparison

AspectRecipeProcess ActionFlowOn Events
Trigger SourceCRM entity operationsProgrammatic callBusiness event
CouplingTied to specific entityCalled explicitlyLoosely coupled
Sync Support✅ Yes✅ YesAsync only
Multiple ProcessesOne per recipe actionOne per callMultiple subscribers
Best ForData-driven workflowsIntegrations, sub-processesEvent-driven architecture

Choosing the Right Trigger

ScenarioRecommended Trigger
Start process when a record is createdRecipe (Post Create)
Start process from another processProcess Action (via On Entering/Exiting)
Start process from external systemProcess Action (via API)
Start process when business event occursFlowOn Events
Multiple processes respond to same eventFlowOn Events
Tight coupling to entity lifecycleRecipe