Hi,
The requirement is to select multiple items from a PowerApps gellery, with one click batch print the selected items and each item has to be on a separate page. The data source is on-prem-MSSQL.
Below is the Full Error followed by PowerApss print button code followed by the PowerAutomate Flow screenshots.
The goal below is to take the final HTML result with page breaks and Print. Id appreciate any feedback, I have been struggling with this for a few days.
Full error:
myflow.run failed: { "error": { "code": 502, "source": "002.azure-aiuim.net", "clientrequestid": "5cee04e8-f213-454b-98b8-7765675764", "message": "badgateway", "innererror": { "error": { "code": "noresponse", "message": "the server did not receive a response from an upstream server. request tracking id '0858510376183496110cu176'." } } } }
PowerApps Button code
// On the OnSelect event of the Print button
// Initialize a collection
ClearCollect(colData, {});
// For each item in your gallery that is selected (checkbox is checked), append its data to the collection
ForAll(
Filter(Gallery.AllItems, Checkbox.Value = true),
Collect(
colData,
{
Field1: ThisRecord.Field1,
Field2: ThisRecord.Field2
}
)
);
FlowName.Run(JSON(colData));
Power Automate Screenshots


Thanks so much
Daryoush