RE: Saving an attachment to business central from Power Automate or Power Apps
hi
the new Business Central media/image connector can be used to achieve this. Here are the general steps to implement this:
Create a custom table in Business Central to store the uploaded images and associate them with the desired record. This table should have a field for the image file itself (in binary format) and a field to store the unique identifier of the associated record (e.g. Sales Order No., Purchase Order No., etc.).
Create a custom API in Business Central that allows you to create a new record in the custom table and upload an image file to it. This API should take in the unique identifier of the associated record, along with the image file in binary format, and create a new record in the custom table with the image file attached.
In your Power App, use the HTTP connector to call the custom API in Business Central and pass in the unique identifier and binary data of the uploaded image.
Upon successful execution of the API, the uploaded image will be stored as an attachment in the custom table in Business Central, associated with the desired record.
Please note that the above steps are high-level and require some technical knowledge of Business Central development and Power Apps
DAniele