Quick overview
This workflow watches an IMAP inbox for new emails, extracts each attachment, uploads the files to the Lexware Files API as vouchers, and sends a Pushover notification once the upload completes.
How it works
- Triggers when a new email is received. The connection is established via IMAP.
- Extracts all email attachments and splits them into individual file items.
- Uploads each attachment to the Lexware API endpoint for file uploads, setting the file type to "voucher".
- Sends a Pushover notification confirming that the invoice file(s) were uploaded.
Setup
- Configure IMAP credentials for the mailbox you want to monitor.
- Add an HTTP Bearer token credential for the Lexware API and ensure the token has access to upload files.
- Add Pushover API credentials, set your Pushover user key, and adjust the notification message if needed. The priority should be at least ‘normal’ in order to receive an active notification.
Customization
- Use Gmail as optional trigger