Create the invoice
When the flow reaches the end without being cancelled, the order is approved (or small enough not to need approval), so the flow creates the invoice.
Scroll to the bottom of the flow and select the (+) at the top level, below the Manager Approval Required condition, outside all condition containers. Search for
Add a new rowand add the Microsoft Dataverse action.Rename the action to
Create Invoiceand in Table name, select Invoices.Open Advanced parameters and select these fields: Amount Due, Due Date, Invoice Date, Order.
In Amount Due, select the Order Value dynamic value.
In Due Date, open the expression editor (fx) and enter:
addDays(utcNow(),10)
Note
Instead of copying the formula, you can ask Copilot again. Select Create an expression with Copilot and describe what you need: Add 10 days to the current date.
In Invoice Date, enter the expression:
utcNow()In Order, type
/nwind_orderses(, insert the Order unique identifier dynamic value from the trigger, and type). This links the new invoice to the order that triggered the flow, in the format/Table(RecordID).Select Save draft.
✅ Checkpoint: Create Invoice sits at the top level after all conditions and writes Amount Due, Due Date, Invoice Date, and Order.
Note
Orders of 1,000 USD or less skip both approval branches and arrive here directly. Small orders are invoiced without any approval, by design.



