This is an example of a Business Central app that extends Document Capture with API pages that can be connected from Microsoft Power Automate
The purpose is to enable a Document Capture company to subscribe to CDC Document Insert events and query/receive the Pdf/Tiff files to e.g. store them in Sharepoint or OneDrive.
Screenshot of a Power Automate Flow connected to this API app:
You can use this code as it is, without any warranty or support by me or Continia Software A/S.
You can use the app on your own risk.
If you find issues in the code, please report these in the issues list here on Github.