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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Attachment control On ...
Power Apps
Unanswered

Attachment control On Canvas app to upload image and documents

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I want add attachment control on the canvas app to uploads document like shown in the screenshot and show those document names. Please suggest all the steps.

 

Regards,

Nandan

Categories:
I have the same question (0)
  • SkiDK Profile Picture
    1,016 on at

    Hi @Anonymous 

    Where do you want to upload it to? SharePoint? SQL?

     

    Ski

  • Community Power Platform Member Profile Picture
    on at

    @SkiDK  Yes, I want to upload it to SharePoint list.

  • SkiDK Profile Picture
    1,016 on at

    For that you will have to use a form. There's no other way currently to upload and show attachments from SharePoint. 

    Capture.PNG

    If you add a form, link it to your SharePoint list and add the field 'Attachments' in edit fields. In the 'Item' property of the form, you can add the certain item for which you want to show or edit attachments. For example if you have a gallery with SharePoint items (from the same SharePoint list), you can do:

     

    Item: gallerySharePointListItems.Selected

     

    This way it will show the attachments of the selected item that are in the list. If you want to add an attachment, you can then  for example in a button submit the form:

     

    SubmitForm(frmAttachmentsSharePointList)

     

    You can of course add multiple fields to update multiple fields in the list.

    However, the way I rather do it is with a form with solely only the attachment as field and use Patch instead. This gives you more control on the updates. When you want to edit the item and attachments to the item, you can do it like next:

     

    Patch(
     'CP Notes_1',
     LookUp('CP Notes_1', ID = varCurrentNote.ID),
     {
     Title: cbNoteTeamEdit.Selected.Value & " - " & Match( Concat( cbNoteContextEdit.SelectedItems, Value & ", " ), "^(?<trim>.*), $" ).trim,
     Team: cbNoteTeamEdit.Selected,
     Tags: cbNoteContextEdit.SelectedItems,
     Country: varCurrentCountry,
     Region: varCurrentRegion,
     Notes: rteNoteBodyEdit.HtmlText 
     },
     frmNoteAttachmentCPEdit.Updates
     ); 

     

    In the patch you can see first I update the ordinary fields of the list where I have more control in what I put into the list. After this I add the form and tell it to update the attachments with: 

     

    frmAttachmentsSharePointList.Uodates

     

    And then it adds the attachments to the correct item in the SharePoint list. 

    I hope this helps. Let me know if you have more questions.

    Ski

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard