PopulateWorkOrderPictures.Run(
"Spare Parts",
varWorkOrder.'Work Order Type'.Value,
TextInput1.Text,
varWorkOrder.ID,
Value(varProcessID),
If(
IsBlank(varWorkOrder.Brand),
"None",
varWorkOrder.Brand
),
If(
IsBlank(varWorkOrder.'Sequence Number'),
"None",
varWorkOrder.'Sequence Number'
),
varnewWOSPD.ID,
If(
IsBlank(varWorkOrder.'Network Name'),
"none",
varWorkOrder.'Network Name'
),
{
file: {
contentBytes: UploadedImage_1_2.Image,
name: AddMediaButton_1_2.FileName
}
}
).response
here is the workflow parameters:-
and the action to create the picture:-
now everything was working well for more then 2 years, on power apps web and power apps mobile application, but yesterday, i made some modifications to the power apps (not related to this process), and we have noted that any image uploaded from mobile apps either using "Take Photo" or "Photo Library" will be shown as corrupted inside SharePoint:-
and the file size will only be "56 bytes", unlike the images uploaded from power apps web browser, which will be 22 KB and more, as follow:-
Also the bytes send from power apps to power automate will be as follow incase of using mobile power apps:-
L1Nlc3Npb25TdG9yYWdlLzM3QjExRTU0LTI2Q0UtNDVFNi1BQTQ3LUU2N0I4MzU1MTYzOC5qcGc=
while the bytes will be much longer for a valid image.. any advice please on this? as it is happening on our prod app as well..
Thanks