Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

RESOLVED : Why am I getting the SP URL in a variable for Base64 image data when changing image in the app

(0) ShareShare
ReportReport
Posted on by 16

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.

Anon_Developer_0-1673613268397.pngAnon_Developer_2-1673613323993.png

 

 

 

 

 

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})
);

 

 

 

 

 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 72 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 71 Super User 2025 Season 1

Overall leaderboard