web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / file attachments store...
Power Apps
Unanswered

file attachments stored as appres://blobmanager/... instead of actual Base64 in Dataverse

(3) ShareShare
ReportReport
Posted on by 3
I’ve built a custom Canvas App (Power Apps) that allows users to upload an attachment and create a “Note” record (Annotation) in Dataverse (specifically within Customer Service Hub). However, when I patch the file to Dataverse, the documentbody field for the Note ends up with a appres://blobmanager/... reference rather than true Base64. As a result, the file appears in the Note record but cannot be opened or downloaded properly.
 
  • I’m using a standard Attachment Control (or similar) which generates a reference like appres://blobmanager/... for the uploaded file.

  • I need the actual Base64 content, not that blob manager URI.
Patch(
    'Note',
    Defaults('Note'),
    {
        'Tema': Table2_1.Selected,
        'Descrizione': TextInputCanvas2_1.Value,
        'Titolo': Table2_1.Selected.'Numero caso',
        'Documento (isdocument)': If(!IsEmpty(DataCardValue10_1.Attachments), true, false),
        'Documento (documentbody)': If(!IsEmpty(DataCardValue10_1.Attachments), First(DataCardValue10_1.Attachments).Value, Blank()),
        'Nome file': If(!IsEmpty(DataCardValue10_1.Attachments), First(DataCardValue10_1.Attachments).Name, Blank()),
        'Tipo MIME': If(
            !IsEmpty(DataCardValue10_1.Attachments),
            Switch(
                Lower(Right(First(DataCardValue10_1.Attachments).Name, 4)),
                ".png", "image/png",
                ".jpg", "image/jpeg",
                "jpeg", "image/jpeg",
                ".pdf", "application/pdf",
                ".txt", "text/plain",
                ".ml", "application/xml",
                "application/octet-stream"
            ),
            Blank()
        )
    }
);
Reset(TextInputCanvas2_1);
UpdateContext({varShowPopup: false});
Refresh('Note');
 
 
 
 
  • Is there a recommended approach or best practice to avoid storing appres://blobmanager/...?

  • Am I correctly handling the Attachment Control to get the full Base64 string in the Canvas App?
 
Thank you!
Screenshot 2025-03-21 100614.png
Screenshot 2025-03-21 100755.png
I have the same question (16)
  • MichaelFP Profile Picture
    1,999 Moderator on at
    Check if you run your canvas app in browser if it will work. I'm starting to see this issue this week. It works on browser but on mobile device doesn't work

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 432

#2
Valantis Profile Picture

Valantis 362

#3
timl Profile Picture

timl 337 Super User 2026 Season 1

Last 30 days Overall leaderboard