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 / Adding document on notes
Power Apps
Answered

Adding document on notes

(0) ShareShare
ReportReport
Posted on by 18

Hi all, 

 

I'm trying to add a document on the same Notes i'm creating 

Here's what i'm doing :

TheJean_0-1698694048326.png

 

I'm making the following patch : 

 

 

Patch(
 Notes;
 Defaults(Notes);
 {
 Titre: TextInput3.Text;
 Description: RichTextEditor5.HtmlText;
 Concernant: Gallery1.Selected;
 'Est un document': If(
 IsBlank(DataCardValue7.Attachments);
 false;
 true
 );
 Document: First(DataCardValue7.Attachments).Value;
 'Nom de fichier': First(DataCardValue7.Attachments).Name
 }
);;

 

 

The note is added to dataverse Notes entity but when i try to open the document, nothing happens !

TheJean_1-1698694446775.png

 

Why i can't open my document saved on Dataverse ? 

 

Many thanks

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @TheJean ,

     

    Please add an image control first. (Important) 

    Ofc if you don't want to show it to users, you can hide it.

    vxiaochenmsft_0-1698718267800.png

    Patch(Notes,Defaults(Notes),{Title:"cc",Document:Last(Split(Substitute(JSON(Image2.Image,JSONFormat.IncludeBinaryData),"""",""),"base64,")).Value,'Is Document':true,'File Name':First( DataCardValue3.Attachments).Name,Regarding:LookUp(Table6S,Type="a"),'Mime Type':"image/png"})

     

    Best Regards,

    Wearsky

  • TheJean Profile Picture
    18 on at

    Thanks for your help @v-xiaochen-msft 

    What about the other files type like pdf, docx, ect.... ?

  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @TheJean ,

     

    Same method.

    Put them into image control. Just modify the mime type property in button formula.

     

    Best Regards,

    Wearsky

  • TheJean Profile Picture
    18 on at

    Thanks @v-xiaochen-msft 

     

    It works perfectly well 🙂 

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard