After a bit of advice on what people do here. We need to send the PDF invoice to an email account so we can capture it to upload to our website.
3 options I have considered...
- Somehow collect the data from Business Central using the Web Services API (As far as i can see it is impossible to collect the PDF)
- Add in the desired email address on every customer account via "Document Layouts" (very time consuming and new ones could get forgotten)
Current solution... - CC the emails from the user sending the email.
- Exchange Admin Center > Mailflow Rules > Add a BCC rule on that Email Account to CC in all mail
- Capture that in another 365 inbox
- Set a forwarding rule in that mailbox to send emails containing "COMPANY NAME - INVOICE" to the desired email account
(However now having issues with this not functioning correctly as Microsoft seem to have added more anti spam rules)
Ideally some sort of API connection would make sense so we can query and collect the document, or some way to set a CC/BCC via Business Central on the outgoing emails would make the most sense, but neither seem possible?