Greenlight Approvals

For Power Platform teams

Approvals for any Power App

Greenlight adds multi-stage approvals to your canvas and model-driven apps. Who approves, in what order and what happens after each decision are rows in Dataverse, so a new approval process needs no new flows and no code.

The approval panel of an approved purchase request: Line manager approved with a comment, Finance approved with conditions, Director skipped.
The approval panel on a real request: two stages approved, the third skipped by its amount condition.

Canvas and model-driven apps9 action types on 13 eventsAny table in Dataverse18 test scenarios passing

Walkthrough

One request, from the form to the purchase order

A requester submits a purchase request. The line manager approves it in the canvas app, Finance approves with conditions, and every step lands in Greenlight Admin.

1 min 48 sCaptionsReal screens

Recorded in a development environment. The people's names are fictitious.

Read what the video says
  1. Meet Greenlight Approvals: multi-stage approvals for any Power App, built on Dataverse, and set up as configuration rather than code.
  2. First, raise a request in your own app. Here it is a purchase request, but Greenlight works with any Dataverse table, in canvas and model-driven apps alike.
  3. Then, submit it for approval. The panel shows the current stage, who is asked and when it is due, and the record locks while it is in approval.
  4. Next, the line manager finds it in My approvals and opens it. The decision buttons come from the template, and a comment goes back with the decision.
  5. And in model-driven apps, an Approvals button opens the same panel next to the form, while the record stays locked. Finance is up next.
  6. Then Finance approves with conditions, a custom button. The status updates, a purchase order is created, the conditions are written back, and the director stage is skipped below its threshold.
  7. And change the process without code. Approvers, rules, conditions and deadlines are fields on each stage, and every automatic action is a row in Greenlight Admin.
  8. Finally, see everything that happened. Each request keeps its full history, and every automated action has its run and its result, with a retry when one fails.
  9. To add approvals like these to your own apps, talk to de facto infotech. Greenlight Approvals is delivered as a managed solution for your environment.

How it works

How a request moves

The same five steps for every process, whether it approves purchases, leave or contracts. The screens below are one purchase request going through them.

1Submit

The requester submits from the record

Save the record and press Submit for approval. From then on the panel shows the stage, who is asked and when it is due, and the record is read-only while it is in approval.

A saved purchase request in the canvas app with the Submit for approval button in the approval panel.
A saved request, ready to submit, in the canvas app.

2Decide

Approvers decide where they work

Approvers find their tasks in My approvals or open the record itself. The buttons come from the template: Approve, Reject, Request changes, or your own, such as Approve with conditions. A comment goes back with the decision, and the template says when one is required.

The Approve confirmation with a comment field, over the approval panel.
Approving with a comment.

3Commit

The engine checks and commits

The app never changes approval data itself. It saves a command, and the engine checks it on the server before anything changes. Commands run one at a time, so two approvers acting in the same second can't collide.

4Act

Actions run on every event

Each event runs the template's actions in order: update or lock the record, create a related record, share it, send an email, post to Teams, or hand over to your own flow. Here the status was set to Approved, a purchase order was created and Finance's conditions were written back.

The approved request: status Approved, approval conditions filled in, purchase order PO-01026, and the panel with every stage's result.
Approved, with the conditions and purchase order written back.

5Record

Every step stays on record

Greenlight Admin keeps the full history of each request and a run for every action, with its result and duration. A failed action can be retried, and a retry never creates a second record.

Greenlight Admin: Action Runs from the last seven days, each Succeeded, with event, action type and duration.
Action runs in Greenlight Admin.

Your apps

One approval panel, in both kinds of app

Canvas apps

Add ApprovalPanel and ApprovalInbox from the Greenlight Components library. Your app adds two or three data sources and four formulas, and gets the panel, the inbox with quick approve, and a status badge.

My approvals in the canvas app, with one request waiting and Open and Approve buttons.
My approvals, with a quick Approve.

Model-driven apps

Add an Approvals button to the form. It opens the same panel in a side pane next to the record, and the form stays read-only while the record is in approval.

A purchase request form in a model-driven app with the Approvals side pane open beside it.
The Approvals side pane.

Configure

A process is rows, not code

An approval process is a template with stages, buttons and actions, kept in Dataverse and edited in Greenlight Admin. Here is the sample purchase process.

Who approves

Named people, the requester's manager, the members of a team, or a person named on the record. One approval can be enough, or everyone must approve.

When a stage applies

A condition on any column of the record, such as an amount above 5,000 INR. A stage that doesn't apply is skipped and logged.

Deadlines

Hours to decide, a reminder before the due time, and escalation to the approver's manager or a named person.

Your own buttons

Add outcomes such as Approve with conditions, each with its result and whether a comment is required.

What happens next

Update Source RecordLockUnlockCreate Related RecordShare RecordAssign RecordSend EmailPost To TeamsRun Extension Flow
Template PURCHASE_REQSource table: Purchase Request
#StageApproversRuleApplies when
1Line managerRequester's managerAny OneAlways
2FinanceTeam: Finance ApproversAny Onedf_amount > 5000
3DirectorNamed peopleAlldf_amount > 25000
Some of its 24 actionsEvent · action · parameters
On SubmittedLock Source Record · Block Transition
On SubmittedSend Email · {"to": "", "subject": "Submitted: "}
On Stage StartedPost To Teams · {"to": ""}
On ApprovedCreate Related Record · df_purchaseorder, linked both ways
On Outcome SelectedRun Extension Flow · Approve with conditions only

Built to be trusted

Approvals you can rely on

No status changes by hand

Users can't write to requests, tasks or history. Every change goes through a command the engine checks, so editing a status column, even from Excel, approves nothing.

Nothing half-done

An action that must succeed first, such as locking the record on submit, runs before the change is committed. If it fails, the request waits on hold until the action is retried.

Retries don't duplicate records

Every action run has its own key. Retrying a failed action finds the record it already made, so there is never a second purchase order. Email and Teams have no such key: in the rare case that a send succeeds but its log entry is lost, a retry sends it again.

Only the columns you allow

Actions can write only the tables and columns on the allow-list, so a template can't change data it shouldn't.

Safe to test

One setting sends every email and Teams message to a single test mailbox, with the real recipient named in the subject.

A history that stays

History is append-only. Configuration changes are audited, and held requests, failed actions and stuck commands each have their own view.

For makers

Add approvals to your app in five steps

No workflow logic to write. The process is configuration, and the engine does the rest.

  1. Import GreenlightThe managed solution, then the components from Greenlight Components into a canvas app.
  2. Allow your tableAdd it to the allow-list with the columns actions may write, such as its status.
  3. Configure the templateStages, buttons and actions, in Greenlight Admin.
  4. Add the panelDrop ApprovalPanel on your record screen, or add the Approvals button to a model-driven form.
  5. Test itSubmit a record, act as each approver, and check the history and action runs.
The panel's OnCommand: the one write your app makes
Patch(
    'Approval Commands',
    Defaults('Approval Commands'),
    {
        Name: "Approval command",
        'Client Request ID': ApprovalPanel1.PendingCommandId,
        'Payload (JSON)': ApprovalPanel1.PendingCommandJson
    }
)

Need an action Greenlight doesn't have? Write a cloud flow in your own solution that picks up an action run by its extension key, does the work, and reports success or a failure that can be retried. The engine itself doesn't change.

What you get

In the box

  • 12Dataverse tables for templates, requests, tasks, history, commands, events and action runs
  • 25Cloud flows: the engine
  • 3Canvas components: ApprovalPanel, ApprovalInbox, ApprovalStatusBadge
  • 1Side pane page for model-driven apps
  • 1Admin app, Greenlight Admin, for configuration and monitoring
  • 3Security roles: user, admin and engine

A separate sample solution adds a working purchase request process in a canvas app and a model-driven app, to try it and to copy from.

You'll need

Requirements

  • A Power Platform environment with Dataverse.
  • Power Automate, including the premium HTTP with Microsoft Entra ID connector the engine uses.
  • At around 500 requests a month the engine makes 25,000 to 35,000 platform requests a day, so a Power Automate Process licence on the engine flows is recommended for production.
  • Users need the Greenlight Approval User role and Basic User; administrators the Greenlight Approval Admin role.

Where it stands

Built, tested, and ready to pilot

Greenlight is complete and tested end to end in a development environment. Here is what to know before a first project.

Tested. 18 test scenarios pass, from a single-stage approval to parallel decisions, recall, reassignment, failure policies, retries and reminders.

Decisions take about 30 to 40 seconds to commit. Emails and new records follow within 1 to 3 minutes. The panel shows Processing and can be closed meanwhile.

The model-driven side pane uses a preview feature of Power Apps: library components in custom pages. Canvas apps don't depend on it.

Not yet installed at a customer. The first installation in a new environment is still to come.

Next: out-of-office delegation, approvals from Teams and Outlook, and deadlines in business hours.

Add approvals to your apps

Talk to de facto infotech about a walkthrough on your own tables, and a plan for your canvas and model-driven apps.

Write to
sales@defactoinfotech.com
Greenlight Approvals is a product of de facto infotech. Screens from a development environment. The people's names are fictitious.