cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
adminKF
Frequent Visitor

How to show the attachment from file(data type coloumn dataverse) and how to added a new one item file in powerapps?

please kindly help me, i am confusing after query some of solution for the attachment powerapps. i build some HR application, i build using dataverse table. for data example i add new record and i upload one file e.g doc file. i want, when i back to powerapps studio, the attachment show on there and i can added more then 1 file. please give me solution, playing with attachment. i need to save the attachment to dataverse in apps powerapps, i need to show the attachment, and i need to add a new file attachment in powerapps. thank you very much pro.

1 ACCEPTED SOLUTION

Accepted Solutions
v-albai-msft
Community Support
Community Support

Hi @adminKF ,

Are you “creating a default app based on the dataverse table” or “creating a blank app and add components manually”?

If you want to manage attachment in PowerApps, no matter how you create the app, you need to have at least an edit form and a display form to edit the attachment, and also a gallery to display all records(then you can edit a specified record to add one more attachment). I think you should first refer to below article to know more about canvas-app forms in Microsoft Power Apps:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-forms

 

Seems you are using a File column to keep the attachment files, I will give you a simple steps about how to manage attachment in PowerApps:

1. Create a dataverse table with a File column called “file1”:

v-albai-msft_0-1614570112967.png

2. Create an app based on this table. Go to the edit form page to add this File column:

v-albai-msft_1-1614570112971.png

3. Also go to the display form page to add this File column:

v-albai-msft_2-1614570112976.png

4. Go to the gallery page to add this File column:

v-albai-msft_3-1614570112978.png

After above actions, you can now save attachments in edit form page, show attachments in gallery page or in display form page.

Below is in a gallery page, I can see the attachment for the first record(other records don’t have attachments yet):

v-albai-msft_4-1614570112980.png

Below is in a edit form page, I just add a new attachment for “user2” record(when you go back to gallery page, you will see the new upload attachment):

v-albai-msft_5-1614570112981.png

Below is in a display form page:

v-albai-msft_6-1614570112983.png

However, descripted in this official document, “it only allows a single file for a File data type field. If you want multiple files, use the attachment feature”. So if you want to add more attachments for one record, you need to enable attachment feature for this table, then use above steps to add the Attachment column into your gallery, edit form and display form:

v-albai-msft_7-1614570112987.png

v-albai-msft_8-1614570112988.png

v-albai-msft_9-1614570112992.png

Best Regards,

Allen

View solution in original post

2 REPLIES 2
v-albai-msft
Community Support
Community Support

Hi @adminKF ,

Are you “creating a default app based on the dataverse table” or “creating a blank app and add components manually”?

If you want to manage attachment in PowerApps, no matter how you create the app, you need to have at least an edit form and a display form to edit the attachment, and also a gallery to display all records(then you can edit a specified record to add one more attachment). I think you should first refer to below article to know more about canvas-app forms in Microsoft Power Apps:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/working-with-forms

 

Seems you are using a File column to keep the attachment files, I will give you a simple steps about how to manage attachment in PowerApps:

1. Create a dataverse table with a File column called “file1”:

v-albai-msft_0-1614570112967.png

2. Create an app based on this table. Go to the edit form page to add this File column:

v-albai-msft_1-1614570112971.png

3. Also go to the display form page to add this File column:

v-albai-msft_2-1614570112976.png

4. Go to the gallery page to add this File column:

v-albai-msft_3-1614570112978.png

After above actions, you can now save attachments in edit form page, show attachments in gallery page or in display form page.

Below is in a gallery page, I can see the attachment for the first record(other records don’t have attachments yet):

v-albai-msft_4-1614570112980.png

Below is in a edit form page, I just add a new attachment for “user2” record(when you go back to gallery page, you will see the new upload attachment):

v-albai-msft_5-1614570112981.png

Below is in a display form page:

v-albai-msft_6-1614570112983.png

However, descripted in this official document, “it only allows a single file for a File data type field. If you want multiple files, use the attachment feature”. So if you want to add more attachments for one record, you need to enable attachment feature for this table, then use above steps to add the Attachment column into your gallery, edit form and display form:

v-albai-msft_7-1614570112987.png

v-albai-msft_8-1614570112988.png

v-albai-msft_9-1614570112992.png

Best Regards,

Allen

View solution in original post

Hi Allen,

thank you for your help and feedback it's really helpfull. after i follow your intruction i still face issue where the attachment on display form is still not show everything. i also choose the resource of data form but still show ther is no item to display. after some testing in other atribute in display form, now i can show the attachment. i go to the item attribute properti in display form, and i choose related table. voila the attachment showing now. thank you in advanced.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (3,065)