Create the invoice

Completed

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.

  1. 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 row and add the Microsoft Dataverse action.

  2. Rename the action to Create Invoice and in Table name, select Invoices.

    Screenshot showing the Add a new row action renamed Create Invoice with the Invoices table selected.

  3. Open Advanced parameters and select these fields: Amount Due, Due Date, Invoice Date, Order.

    Screenshot showing the advanced parameters dropdown with the four invoice fields selected.

  4. In Amount Due, select the Order Value dynamic value.

  5. 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.

  1. In Invoice Date, enter the expression:

    utcNow()
    
  2. 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).

    Screenshot showing the complete Create Invoice action with Amount Due, Due Date, Invoice Date, and the order link configured.

  3. Select Save draft.

✅ Checkpoint: Create Invoice sits at the top level after all conditions and writes Amount Due, Due Date, Invoice Date, and Order.

Screenshot showing the complete Order Automation flow from the trigger through the approvals to Create Invoice.

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.