Flow Document

The last action should be a HTTP response action or a PowerApps Response action with no payload.

Flow Mailmerge

The last action should be a HTTP response action or a PowerApps Response action with a payload.

Message: return only a message that the work is done, for example:

{ 
  "message": "All done" 
}

or return an error message:

{ 
  "message": "This is not allowed",
  "messagetype": "error"
}

Note: messagetype is not available in release prior to 2025.3.x

Document: return a document, so it will be downloaded automatically by the user, for example:

{ 
  "contenttype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document", 
  "content": "...base64 string of the docx file...." 
}

If returning a zip file, use as contenttype "application/zip".
If returning an Excel file, use as contenttype "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet".

Navigation: return info to navigate to, for example:

{
  "navigateTo": {
    "input": { ... },
    "options": { ... }
  }
}

Note: not available in release prior to 2025.3.x
Only supported with HTTP response action, because of complex properties.
For more info about navigateTo see https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/xrm-navigation/navigateto

Example (navigate to an account record with id 3eac5532-19c1-ea11-a812-000d3a4684b2)

{
“navigateTo”: {
“input”: {
“pageType”: “entityrecord”,
“entityName”: “account”,
“entityId”: “3eac5532-19c1-ea11-a812-000d3a4684b2”
},
“options”: {
“target”: 1
}
}
}