Hi all, bit of a weird one at least for me!
I have an add image button that passes the details from the app on save to a Flow that stores the image in SharePoint. When I first add an image everything works fine, I'm storing the binary data in a variable called lclBase64String. I am showing the variable value in a label on the screen just for debugging. You can see from the 1st screenshot below the binary data in the label when first adding an image but in the 2nd screenshot where I've changed picture, you can see the value is the SP URL. The formula shown is from the save button OnSelect relating to this image.
Thanks in advance.
EDIT: I've resolved this, was referencing an incorrect variable that signified an image had changed.
If(
lclPhotoOneModifiedFlag,
Set(
gblUploadImageTimerStart,
true
);
Set(
gblTextModulesLoadingSpinnerVisible,
true
);
UpdateContext(
{
lclBase64String: JSON(
UploadedPhoto1TMP.Image,
JSONFormat.IncludeBinaryData
)
}
);
UpdateContext(
{
lclTrimmedURI: Mid(
lclBase64String,
2,
Len(lclBase64String) - 2
)
}
);
'Flow–UploadImagetoDocumentLibrary'.Run(
AddMediaButton1TMP.FileName,
lclTrimmedURI,
gblCurrentTextModuleRecordId,
"PhotoOneTextModulesList"
);
Patch(
colTextModulesRecordCollection,
First(colTextModulesRecordCollection),
{'Photo One ID': Blank()}
);
UpdateContext({lclPhotoOneModifiedFlag: false})
);
WarrenBelz
89
Most Valuable Professional
Michael E. Gernaey
72
Super User 2025 Season 1
mmbr1606
71
Super User 2025 Season 1