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 in ...
Power Apps
Unanswered

attachment control in a canvas app?

(1) ShareShare
ReportReport
Posted on by 282

Hello, 

 

Is there a way to create or have an attachment control for a canvas app?  I'm building one and I've never been able to have something simple where someone can just click the icon, upload a file and have it send with the info.  Does something like that exist for a canvas form?  

 

I tried the IMPORT button, but when I try it - it says that the file has to be a power apps file, and that's not what I'm looking to do. 

 

Just looking for guidance. 

 

Thank you!

Categories:
I have the same question (0)
  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    What are you using as a datasource?

  • ianallen13 Profile Picture
    282 on at

    Currently no data source - I want to see if there is an option for someone to open the app and submit a file (from their desktop) for example, in the canvas form.  Does that functionality exist at all?  I have a work around, but just wanted to see if it was something that existed. 

  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    I mean yeah, but it needs to go somewhere, you can't just 'upload' it, where is it being stored when uploaded?

    Or are you saying you just want an attachment for an email?

    You can add in a SharePoint datasource, add the editform control, copy out the attachment control to wherever you need it, then remove the datasource and the form

  • ianallen13 Profile Picture
    282 on at

    Sorry if I misunderstood.  Yes, it will be connected to a SP list where the rest of the info will be stored. 

  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Yes, ok so if you add an EditForm then it will have an attachment datacard and control if your list has attachments enabled - using this they can upload files from the computer as an attachment to a row item 🙂

  • ianallen13 Profile Picture
    282 on at

    I appreciate the response, but unfortunately I don't think I'm following.  My list does have attachments enabled, I checked that.  Do you have an example or something I could see visually?  Apologies that I'm not grasping this as easily as I probably should be.  I'm confused on the 'editform' - the datacard piece sounds like the app would be directly connected through SP.  I'm looking to use a canvas app.  

  • Verified answer
    iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Hey no worries, I'm not here to judge at all mate, happy to explain actually!

     

    Ok, so a canvas app is like a chassis, and so you can't make it do anything to any datasource that has not been added to the app as a connectable datasource using a connector (in this case the SharePoint connector).

     

    So in your app, you'd click the datasources icon:

     

    image.png

     

    Then choose add data and expand connectors, if you don't see SharePoint in that connectors list then use the searchbar in that overlay:

     

    image.png

     

    If the connection with your user details is listed then click it otherwise if its the first time then it might just make it for you automatically otherwise click add connection.

     

    image.png

     

     

    Now you'll be presented with a list of sites on the right-hand side, you can paste the direct link to the site if you have it, otherwise search for it if it doesn't already appear in the list of suggested recent sites:

     

    image.png

     

     

    Then you'll be presented with a list of lists within that site that you can choose to add to your app as a potential datasource. Tick the ones you need then click connect:

     

    image.png

     

    Now that we have the datasource in the app we can use an edit form with that datasource as the datasource:

    click Insert > Form > Edit

     

    image.png

     

    Then choose your list when asked for a datasource, the app will then pull what it thinks is the basic list of fields ( each getting a datacard and some controls) for that datasource. One of these will be the attachment control, which is what I was referring earlier:

     

    image.png

     

    image.png

     

     

    And in terms of the directly connected app - when you use sharepoint and edit items in a list, every single one of those forms that are there by default, are canvas apps that have been integrated directly into sharepoint, but that doesnt mean that a standalone app Can't be connected to sharepoint. Additionally, a 'create from sharepoint' app is actually a standalone canvas app with some pre-filled screens and controls that make a basic functional app but they are in no way locked down to sharepoint or to the visual/configuration that they come with.

     

    A canvas app can have multiple different datasources, sql/sharepoint/dataverse/etc and even all at the same time 🙂

     

    I would Highly recommend going through the following learning path on mslearn if you would like to know more about building canvas apps - that will give you a solid baseline to build on top of, and when you encounter issue while building then these forums are here to help 🙂

     

    Create a canvas App in Power Apps

     

    Cheers,

     

  • ianallen13 Profile Picture
    282 on at

    Sorry for the delay in response.  I never knew this was an option this way!  I already have something else that the department likes instead, but I appreciate this for the future.  Thank you so much!! 

  • ianallen13 Profile Picture
    282 on at

    So I tried this quick and when I execute the app - it doesn't give me an option to search or add any files.  I did connect it to my SP site, and I have attachments enabled, but any thoughts?

     

    ianallen13_0-1655999282875.png

     

  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    Yes, will need to call the EditForm function during the onVisible of that screen (or whatever trigger you are using to start the form):

     

    EditForm(FormNameGoesHere) 

    ( and make sure the item for the form is set to the item you're trying to edit )

     

     

    Then SubmitForm(FormNameGoesHere) to send those attachments to the list

     

    Alternatively if you are just wanting to add attachments to a list with no context or item you could do it via NewForm(FormNameGoesHere)

     

    and then use SubmitForm(FormNameGoesHere) to submit them

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard