Write X++ code to save the file in Azure Blob storage as this help to centeralized documents.
Add an extra field in customer invoice jour table to track whether the file has been saved in Azure Blob.
Create business event also for new invoice generation.
Consume this business event in power automate or Azure Logic Apps. Based on the primary field information, fetch the file from Azure Blob storage.
Note: Power Automate may not have a direct SFTP connector I am not fully sure, but Azure Logic Apps definitely supports it.
You should consider all these scenario like
If there are duplicate invoices, do not save the file in Blob and do not trigger the business event.
If another version of the file is created,how will you handle also for error logging.
Hi CU39041349,
Your goal of generating and exporting Sales invoice PDFs to a SharePoint folder (and eventually to an SFTP site) is achievable, and there are a few ways to approach it depending on your architecture and integration preferences.
You can hook into the invoice posting process and use X++ to:
SalesInvoiceReport
SrsReportRunController
SrsReportDataContract
File::SaveFile()
To push the PDF to SharePoint:
Once the file is in SharePoint or a staging folder:
Let me know if you'd like help drafting the X++ logic or setting up the Power Automate flow.
Thanks and best regards, Daniele Note: This response was prepared with support from Copilot to ensure clarity and completeness.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohaib Cheema 756 User Group Leader
André Arnaud de Cal... 629 Super User 2025 Season 2
Martin Dráb 514 Most Valuable Professional