Technical Notes, Zetadocs, Capture
HOWTO: Automatically onboard attachments from Outlook to SharePoint for Zetadocs Document Queues
ZTN4629
This Zetadocs technical note applies to:
- Zetadocs Capture
- SharePoint Online
Summary
This technote will detail the steps of creating a Power Automate flow in order to automatically onboard attachments received via Outlook directly into the Zetadocs Document Queue SharePoint directories. To do this, you will need a good understanding of Power Automate, an O365 account which is licensed for Power Automate, an account which can authorise connections to SharePoint Online, as well as being able to connect to Outlook and access the shared mailbox which will be monitored.
More information
This is a beneficial process as it puts less strain on the finance and accounts admin team from having to manually save and migrate these files across to SharePoint Online each day, saving time and resources. As this is functionality within Microsoft's Power Automate solution, the naming of certain triggers and values may change.
To achieve this, you will need to create a Power Automate flow based on an automatic trigger.
- Open Power Automate and ensure the environment is set correctly to the same environment your BC instance is within and the O365 Mailbox that will be set as the trigger – then click ‘Create’
- Select ‘Automated cloud flow’ and set the trigger to be ‘When a new email arrives in a shared mailbox (V2)’ and select ‘Create’
- Once the flow is open, select the trigger action, and set the ‘Original Mailbox Address’ to the shared mailbox that you wish to be monitored
- Click ‘Show more’ for the advanced parameters and set ‘Only with attachments’ to Yes to ensure only emails with attachments will trigger the flow, and set ‘Include attachments’ to Yes.
- Lastly, set the folder to the relevant folder that the emails containing attachments destined for the queue will be in
- Add a new action and search for the Office 365 Outlook action of ‘Get Attachments (V2)’, and select it
- Select the action of ‘Get attachment (V2)’ and set the following as the dynamic values from the 'When a new email arrives in a shared mailbox (V2)' action:
- Message Id: 'Message Id'
- Attachment Id: 'Attachments Attachment id'
- Original Mailbox Address: (Mailbox used in the trigger of the shared account)
- This will now have added a 'For Each' action containing the 'Get attachment' action. Click this, and set the output from the previous steps as the dynamic value of 'Attachments'
- Now, create a new action within the ‘For Each’, but after the ‘Get attachment (V2)’ and search for the SharePoint Online action of ‘Create file’
- Select the 'Create a file' action and input the Site address of the site where the Zetadocs Document Queues are in SharePoint Online
- For Folder Path, select the folder icon and browse through the site to the Document queue folder (Either a Sales/Purchase Document Queue or the Accounts Payable Automation Document Queue)
- Set the File Name as the dynamic value from a previous action of ‘Get attachment’ labelled ‘Name’
- Set the File Content set this as ‘Content Bytes’ from the previous action of ‘Get attachment’
- Now the flow is complete, name it if you haven't already and save it. Once this is saved, you can go ahead and test it by emailing the shared mailbox with an attachment
Last updated: 11th March 2026 (MT)