Work in Microsoft 365? Let Boxflow start a Power Automate flow for every new eBox or MyMinfin message, and archive the documents in SharePoint, post them in Teams or start an approval.
An automation in Boxflow sends the details of every matching message to your flow.
The flow downloads the attachments of the message through the Boxflow REST API.
The flow saves the documents in SharePoint or OneDrive, posts in Teams or starts an approval.
In Power Automate, create an instant cloud flow with the trigger “When an HTTP request is received”. Set “Who can trigger the flow?” to “Anyone” (Boxflow cannot sign in with a Microsoft account; the secret signature in the URL protects the flow) and paste the request body JSON schema below. Save the flow to generate the HTTP URL.
In Boxflow, create an automation with the conditions you need (for example one company or one sender) and add a webhook action: method POST, format JSON, the HTTP URL from Power Automate, and the payload below.
In your flow, add an HTTP action with method GET on the attachments endpoint of the message, with the header “Authorization: Bearer” followed by your Boxflow API token.
Add an “Apply to each” on the data array of the response. Inside it, add a second HTTP action that downloads the attachment by its ID. The response body is the file itself.
Add the SharePoint or OneDrive “Create file” action. Use the attachment name as file name and the body of the download action as file content, for example in a folder per company.
Save the flow and reprocess the automations of an existing message in Boxflow. Check the run history in Power Automate and the audit trail of the message in Boxflow.
{
"message_uuid": "{{ message.uuid }}",
"tenant_uuid": "{{ tenant.uuid }}",
"subject": "{{ message.subject }}",
"sender": "{{ sender.name }}",
"company": "{{ company.name }}",
"date": "{{ message.message_date }}"
}
Boxflow replaces the placeholders with the values of each message.
{
"type": "object",
"properties": {
"message_uuid": { "type": "string" },
"tenant_uuid": { "type": "string" },
"subject": { "type": "string" },
"sender": { "type": "string" },
"company": { "type": "string" },
"date": { "type": "string" }
}
}
# List the attachments
GET https://boxflow.be/api/external/v2/tenants/@{triggerBody()?['tenant_uuid']}/messages/@{triggerBody()?['message_uuid']}/attachments
Authorization: Bearer <your Boxflow API token>
Accept: application/json
# Download one attachment (inside "Apply to each" on body('List_attachments')?['data'])
GET https://boxflow.be/api/external/v2/tenants/@{triggerBody()?['tenant_uuid']}/messages/@{triggerBody()?['message_uuid']}/attachments/@{items('Apply_to_each')?['id']}
Authorization: Bearer <your Boxflow API token>
Each attachment in the list has an id and a name. Use the name as file name in “Create file”.
Sources: Microsoft Learn – Request trigger (“When an HTTP request is received”)
Yes. The “When an HTTP request is received” trigger and the HTTP action are premium connectors in Power Automate.
The other options require a Microsoft Entra ID token, which Boxflow cannot provide. With “Anyone”, the flow is protected by the secret signature in its URL; you can add a secret header for extra protection.
Yes. Files in Teams channels are stored in SharePoint, so you use the SharePoint “Create file” action on the document library of the team.
Not yet. The webhook and API approach in this guide works today with any Power Automate environment.
Connect Boxflow to your own software
Read moreGovernment letters straight into Billit, via email
Read moreGovernment letters straight into Exact Online, via email
Read moreeBox messages in SharePoint automatically
Read moreGovernment letters straight into Odoo, via email
Read moreLog in with Microsoft Entra ID or Google Workspace
Read moreComing soon: connect Boxflow to thousands of apps
Read moreConnect your first company for free and receive your government messages wherever you need them.