I love watching your videos. It would be a dream to be able to have you as a resource when I'm developing complex apps and flows. You would help me save so much time!
I missed your videos as I was busy with PL-100 Certification. I had passed the PL-100 this week. I already cleared my PL-200 and PL-900 also. Now I have to complete the pending videos which I have left. Thanks for your time and efforts on sharing valuable tips. As always you are my super hero.... Reza..
Thanks for provided the MS doc link and putting it in the description. It's helpful and saves me time from Googling when I want to know more about the topic and I always come back to your videos to refresh my memory.
Once again, thank you for providing this very valuable and useful concept with clear explanations and nicely paced format. We appreciate you sharing your knowledge with all of us.
Great video and really helpful! I have used it a couple times and today I was trying again and for some reason I could not get my documents to save in my list (although they would tag in the app fine). I finally decided to change the name of my collection (I had made it a little long but nothing too crazy...or so I thought lol) That fixed it! So if anyone is having issues with the files not saving, maybe try shortening the collection name you are using to hold the attachments.
this is really helpful and relevant today as well 👍 thank you for creating such helpful and brilliant contents for the whole community out there. Thanks Reza .
Thanks Reza for a great video. Loved the way this video was done. I had one question - In my use case, I upload a picture of an employee on my app. I would like to rename the picture name based on another control in form control before the form is saved. Is there way to achieve the same?
Most welcome! I would say it's possible but not something I have tried or have a video reference for. I will recommend checking or posting your query on forums in case someone has done something similar community.powerplatform.com/
It is really awesome video and helped me to rename the file in attachment control as the per the category. But I observed one issue - When I add first all files and delete any already existing file (present in the SP list) and save the record, then it properly delete existing file from control. If I delete any existing file and then add new file and save the record, then it don't delete existing file from SP list and keep as it is. As per my understanding it happened because the collection get refresh in onAddFile event. Do you have any suggestion to resolve this issue? Thank you in advance.
Hi Reza, helpful video! When I get to the part about clearing the attachments when it comes to adding a new form, I get stuck. When I add a new SharePoint list item, the attachments from the previous item remain on the new list item. I do not have my app set up to allow a new item to be created through the app. I create a new list item on the SharePoint list directly. Will the clearing of attachment step only work if the ability to create a new item is available through the app directly?
Video description has link to download sample App. As for your issue, I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hi Reza, Great innovation (as usual). Small issue - if used on Integrated Form, Collection does not like triggering consistently on screen OnVisible, OnNew, OnEdit or OnView. Small adjustment on Items of Attachment control If( CountRows(colAttachments) = 0, ThisItem.Attachments, colAttachments ) I also have the DisplayMode of the Attachment control If( Len(ddAttachName.Selected.Value) = 0, DisplayMode.View, Parent.DisplayMode ) which forces the user to select an item before "Attach file" is available. Great resource and I have used it a lot.
Hey Warren & Reza, I tried this code, but the problem is with my Sharepoint list item. If I publish this to sharepoint list Item the attachment field is working, renaming is working however, once I save the item, the attachments are not saving. It is Mandatory that list items gets saved with attachment as I have configured Approval flow using power flow
Hi Reza, Thank you for your insightful video as always. I have an App with multiple attachments. Thanks to your tip. One question please When i click on submit, My form does not submit to SharePoint. Is there anything specifically that i need to do for it to submit? Also if it submits, will only the FinalAttachment Collection submit to SharePoint?
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hi Reza, Thanks a ton for this! I am facing issues whereby attachment cannot be found on the right-side control panel. I have create an app which enable one to add new documents into the sharepoint document library via Msteams. However, as i was creating the app, the attachment field cannot be found for my document library even though it does for my 2 lists. what can i do such that i can attach a file while creating a document record for my document library?
Video description has link to download sample app. I have not come across the mentioned issue and hence not sure what the cause could be. I recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
Hi Reza, Tha ks for the video...One question though, I was looking at the multiple attachments application which you explained at the end. How can I delete the attachments there.
Thank you very much for your videos, they have helped me a lot. I have a question, how can i show in this control the file of a note table record? this table does not have a column of type "file" it only stores the base64 content of the file in a column of type "text"
I do not have a video reference on this scenario and would have to try it out to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Thanks you so much for sharing knowledge.. learnt much from your tutorial. I have a question like What if i wanted to remove only attachments by keeping the rows in SharePoint ... Is it possible through buttons in power apps
@@RezaDorrani Thanks much for reply ... After deleting and submitting the form... It is not getting deleted in SharePoint .. again if i fetch all of them are loading again... Am I missing something here ... I'm loading attachments through collections in the gallery using the remove function... It is getting deleted in gallery as well as attachment but not is SharePoint
@@mani0536 Im not sure if you are missing something as I cannot see your App. Video description has link to download sample apps. Certain limitations are in play with this approach. Its been a while since I did this video hence do not recollect much. Worst case scenario you can always leverage flow to delete all the attachments.
I Reza, awesome job!! A question: if I have only one attachment in a record, and i want to remove it (without replacing it with a new one), the collection is not refreshed, and the "edit" on the list is not performed! Any suggestion? Really thanks for all!!
I will have to look at your app in action to provide guidance. I recommend posting your query with screenshots on the forums at powerusers.microsoft.com
Hi Reza, Thanks for sharing this informative video just one help I need within second App (14:23 - Multiple Attachment Controls in Power Apps) You didn't explained how to do this, is there any other video to refer please comment link of it. I have tried with your given code but Attachment not uploading to Share Point list.
@@RezaDorrani i have downloaded Also created same thing but not able to upload Need some explanation regarding how do you take separate attachment controls and how do you removed attach control from final attachment
Hi Reza, Good morning. Great video. Helped me a lot. But one question I have regarding multiple attachment, that if the user wants to remove one attachment they cannot directly remove from their own attachment section "For ex:- Project Attachments" and they need to directly remove them from main attachment. I guess for that purpose you've added that rectangle bar on each section. So, is their anyway that the user can remove the attachment directly from their own section attachment? Once again thanks reza:).
Thanks for the video Reza, I have a question on the file sizes, Can we upload large files of more than 100 MB from Powerapps to ADLS or Sharepoint Document Library?
This is great. It helps out immensely. Is it possible to have the OnAdd action also add a 2nd copy of the file renamed with "-Original" added in? Like the user attaches 12345.txt and on the list (and uploaded) the user sees/gets 12345.txt and 12345-ORIGINAL.txt?
Thanks for the video!! didn't know that it's possible in PowerApps before seeing this video, i tried the same thing in one of my test apps where i created three attachments fields and passing the final variable to my main attachment field in edit form where i am able to upload new files but while removing any file from the attachment fields it's not saving. dont know if i am doing anything wrong!!
Thanks for teaching us the ways to improve our power apps! a question popped up in my head after watching your video, would you say it is likely to apply this attachment control but in a component? So it can be resusable
Great video as always. Quick question. This seems to only work for new attachments, have you found a way to do this with items already attached? You example looks like it's going to work, it even adds new files as expected, however, the attached file is left untouched. In my case, the users upload an Excel file and make changes to it, however once they are ready to submit the file, I want to add file-Final to the file name. I can do it with flow, but would much rather avoid using flow. 🤮
@RezaDorrani Thank you for creating such amazing content Is there a way for using a icon to add attachments ? Also could you share the video for making the form thats made in the last section of this video
Great video as always, one thing is not clear though is that how can you change category of attachment, for example, an attachment was wrongly classified as "invoice" instead of "project"
Hello, Mr. Reza, thank you for the video. I have a question though. For the Multiple Attachment Controls Form in the last part of the video when you try to edit the item you choose from the gallery and hit the submit button again to make your changes it doens't work. The initial submission works just fine though.
Video description has link to download sample App. As for your issue, I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Many thanks! I have a PowerApps form that saves to SPO and it includes attachments. Users should only have the "Add" permission, not "Edit". It appears that for SPO list item attachments, the list item gets created first and saved, then the attachments are added. Do you have any recommendation on how to save attachments to a list item thru PowerApps (likely with Power Automate) even if the user cannot "Edit" the form?
I do not have a specific video reference on the mentioned scenario and would have to try it out to provide guidance. I will recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com
Reza, Thank you so much for this control. I'm having trouble with the position. It won't scroll with the form. It's not staying at the position I want which is to the right of the attachments card. Yes I'm a powerapps newbie.
I would have to look at your App in action to provide guidance. I would recommend to post your issue with screenshots on the forums at powerusers.microsoft.com
@@RezaDorrani thank you for your reply. I ended up using another form to show the attachment viewer and that works. I did try to put the viewer in a custom card but it wouldn't take it.
Hi Reza, wonderful video. I do have a question though. In my powerapps form integrated to sharepoint, I am able to attach the files normally in new form mode but in edit mode, the file attached is not being saved. In the edit mode of the app, there are no runtime errors but as soon as I open the edit form, run time error occurs on the attachment section. I have tried refreshing the SP list, delete and add the attachment column but nothing works. Can you please help me on this? The error says unknown error occured
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Thank you very much for another brilliant video! Any idea why I am getting the dreaded "Incompatible types for comparison. These types can't be compared: Enum, Text." in the Items property for the Attachments Control? The view form lists all the items but it just won't filter like your solution is doing. Thanks again.
Video description has links to download sample Apps. As for your issue, I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hi Reza, first of all great tutorial and design! I am struggling with a slight modification of the file name, as I do not want to use a dropdown, but a text input instead. Unfortunately, then all files are always labelled with the latest textinput, so they have all the same filename. Do you have any idea how to fix this?
The technique shown in video does not put out same file names. It does not matter if its dropdown or text input. There must be something thats not done correctly at your end. Video description has link to download the app showcased in video I believe.
@@RezaDorrani Thank you for the quick reply, that is awesome! Unfortunately, I am still stuck here. With the dropdown it works for me. I need to keep the file extension when renaming the file. Therefore I split the original name and replace the part before the extension. I assume here comes the trouble, but I did not find the key issue yet...
@@akurzphysik I do not have a video reference on this scenario and would have to try it out to provide guidance. I recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Hello Reza, really nice video, super helpful. In the multiple attachments implementation, do you know how can I delete a file from the SP list when I delete it from the childs? Thank you!
You will have to delete it from the main attachments section. That is the reason why I added a rectangle control on top of the attachment type sections to avoid user from deleting there.
@@RezaDorrani There is still an issue of showing the removed item from the main attachment section in the respective child attachment section. Example, if i remove a travel attachment from the main attachment section, it still shows in the travel attachments section. Any idea how to not show the removed items in the child sections as well ? Obviously, the child attachments reflect correctly after the form is submitted and clearcollect for each attachment section is done on submit or by returning to the dashboard screen, but I would like to show even before submitting the correct attachments in each section.
Hello Reza I love your videos , they helped me a lot on my current job . Thank you I also have a gentle request, can you elaborate more on multiple attachment controls . I want to create 6 separated controls for attachments. Do you have any tutorial for that? Thanks again
Thanks for watching and liking my videos. The multiple attachment control's part is a bit complex and again works on naming standards to define the location of attachments. Video description has link to download the sample App for multiple attachments. All the code is in there :)
@@tihralahn App will not work directly. Data sources will have to be connected. Best to post your issue with screenshots on forums at powerusers.microsoft.com
Hi Reza, As I follow this video, I notice that you don't show us on how to remove the attachment in case of misuploading at the new form. I searched through this comment section and found that removing unwanted attachment is unavailable with this approrach. Is that correct ? Because unable to remove misuploading attachment is quite annoying even though we can temporary fix this with the "remove all" button (call the Clear() function) but that isn't the best experience for the user, since the "X" button to remove still visible and when click on it, it remove the item visually but not in the collection behind
Thank you so much for the great demo. I'm not a super user and unable to get to how to add multiple attachment control that you created in this video in the end? Can you please help me. Thank you in advance!
The video description has links to download both the sample Apps. To add multiple attachment controls, you can unlock the attachments data card in form control and then go to fields and add another one.
Good video, a question. I need to be able to extract the path and name of a file that is on a local server. Can I apply something similar to obtain these values? At first glance, I can easily obtain the name but not the path.
I have not tried extracting the path hence not sure. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Hi Reza, hope you are doing well. One question - Can we check attachment size using any power Fx formula to validate if attachment has any content in it ? Can we do it using powerapps only without exploring the power automate route ?
Hi Reza, great video, I followed it and got my tagging working very well but my design is on the form itself not the gallery as is your instance. I can add and also clear the collection but when I open or view a list item, the attachments are not loaded. I have cracked my head but unable to resolve this issue. How do I load the attachments with the SharePoint menus: edit and view for the selected item? Your support is much appreciated.
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hi Reza, Very nice video, thank you very much!, One question. I've tried this function with PDF files, and i'm not getting the categorization in the name file... do you know why? When I use another type of file it does... Then only file type that is not working is with PDFs...
Hi Reza, great video as always. One question though, I have multiple Attachment controls and multiple collections. How can I tell PowerApps what collection should be submitted to Sharepoint? It uploads the wrong collection now (not the FinalCollection with all attachments in it).
Thanks for the video Reza. I'm having issues with my attachments. I have two buttons on my forms "Save in Draft" and "Submit". When I click either button, and go back and view or edit the form, the attachments are not saving to the record. I have an edit icon on gallery, and set the OnSelect property of the Icon, I listed the following formula: Can you tell me what I'm doing wrong? Set( varFormMode, FormMode.Edit ); Set( varItem, ThisItem ); Navigate(CreateNew); ClearCollect( colAttachments, ThisItem.Attachments )
I will have to look at your App in action to provide guidance. Video description does have links to download and try out the sample App. You can look at the code base there. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com. Screenshots are very important to set context.
Very nice video. I think also we can control the security of the attachment based on the tagging. Example: If you have previously uploaded attachments, a manager can delete them for you if he will be having the access to edit the form. So by tagging, you can filter what to display even if he is a manager to avoid deleting the attachments. Will that work?
Thanks for this, Reza! One of the drawbacks of this attachment control is that attachments (i.e. a PowerPoint file) cannot be edited anymore as can be done in the standard SharePoint interface: the attachment control requires the files to be downloaded, edited locally before being uploaded again. QUESTION: is there a way to edit attachments without needing to download them? Maybe an idea for a next video :-)
@@RezaDorrani If I remove the attachment directly from the finalattachment datacard it works fine. But if I remove the attachment from other attachment cards, the file removes from final attachment card as well but it won't remove the file from sharepoint list.
Hi Reza, Thanks for the video. Quick question, is it possible to edit the attachments by deleting them and adding more to the same SharePoint list item? I seem to be struggling using this method.
@@RezaDorrani Yes, it's not in this video but you have another video where you show how to add tags into the names of attachments by using a custom collection 'colAttachments'. I don't believe this works when attachments in SharePoint. i.e. deleting and adding different ones. I was hoping you could confirm if I'm correct so I don't keep searching for a non-existent solution :)
Hi Reza thank you for all your help, I have an issue and maybe you know, I have a custom sharepoint list form with poweapps but when I click on the EditForm and then Edit Fields I cannot find the attachments control in there to add it to the form, it simply does not exist, and I don't find anyone else having this probablem. Hope you know why.
Thanks Gaurav. I will add it to my backlog. I did a few mixed reality based videos for user groups a year ago. Check ruclips.net/video/1KhQyhhMvYE/видео.html
Hi Reza, thank you so much for all the wonderful videos you make. They always are helpful. My Question, you have used the tag dropdown button outside of the form control, since your form is not scrollable it works great. In my case my form scrolls because I have more fields, and hence the problem is the tag control doesn't stay in place. Any suggestion to overcome this issue? Thanks in advance!
Reason I put it out of form control is because when form is in view mode, it will not be editable for refining. For new and edit forms you can place it in your form.
@@RezaDorrani Thank you so much for the prompt response. I need mine also to be Editable for refining , is there a way i can manage the control to stay in a specific Y position while the form scrolls?
@@mashohbd5838 I would have to try it out to provide guidance. I will recommend posting your query on forums at powerusers.microsoft.com/ May be someone has a solution for this.
Hi Reza, You're videos are the Go-to videos for me as I start my power platform journey now. Thanks a lot! I've a scenario where my SP list is split in to 3 forms in 3 different tabs and each tab has a form with different attachment fields. On submit in the 3rd tab, I've to patch all the values to SP list. All attachments in all 3 forms should be linked to one attachment field in my SP list so that the user can see the proof documents for that request. Is it possible to do this way?
As usual great informative video. But i have problem with the attachments. The attachments are being uploaded if i use the collection (colAttachment) as items but if i use Parent.Dafault then it's working.
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
hi reza, thank you so much for your demo. one question, lets say the user come back to the form and delete one attachment, is it the deleted attachment will also be deleted or remove in the sharepoint list?
Hi Reza, Thank you so much for your hard work. Do you have example how to patch attachments as collection into new submit form for creating a sharepoint item in powerapps instead of editing the existing item? Always appreciate your help.
Hi Reza, Happy New Year, Good video and nice explanation. I am having doubt at 10.40. How you are adding the attachments inside the collection using ThisItem.Attachments. In my case, I am not getting the attachments column in the suggestion after typing ThisItem.
Happy new year! If your gallery is connected to a SharePoint list directly, then you should get ThisItem.Attachments. Another reason could be that you might not be in the right context of the code (context of gallery). I would also recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
@@RezaDorrani Hi Reza, I written the same code what you have written at 9.20 . My issue is that the tags are repeating.. For ex : If tag selected is PowerApps and file name is Hello. Uploading 1st time : PowerApps-Hello Uploading 2nd time : PowerApps-PowerApps-Hello. Each time while uploading, all the files in the collection are getting updating . Am I missing anything ?
@@sathyashiva1373 I will have to look at your App in action to know exact cause of your issue. I will recommend posting your issue with screenshots on the forums
@@RezaDorrani Hi Reza, I made a mistake on my side. I missed a ".Value " after typing the tag collection name in the onaddfile property of attachment control. So it started creating multiple duplicate tags. Now its working fine. Thanks for this amazing video.
Hi Reza, I've tried this function in an app that I'm building and seems amazing! I have 2 questions (and let me introduce a little bit): This app will have multiple screens and I'm adding the attachments field to all of them, but on each screen, the field is renaming all the files attached again. So: Q1: How can I fix the name of the files already added and don't rename them when I add a new one on another screen? Q2: It's possible to use the Patch function and keep all the attachments of all screens? Thanks a lot for all knowledge you share with us! It's truly helpful.
1 - I have not tried with multiple screens so not sure. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com 2 - Patch does not support attachments
Hey Reza, first of all thank you for your video. I am trying to implement a version of your solution but when I attempt to download the files from the canvas app, I am unable to do so and I see a “Couldn’t download - No file”. May I ask if you had any experience with this issue? Thank you!
Thank you so much for this wonderful video. While tagging attachment i am unable to reference displayname in the updateif. If I only update the name field, then I see it getting renamed in the collection. Will it be possible for you to recheck if new update of powerapps has given away with displayname in attachments control.
@@RezaDorrani them you so much for replying...the sample app works but if I create a new app and then use the attachment control -on add file-updateif doesn't find the display name field. I even copied your updateif script as it is..yet it isn't working...if you have little time will it be possible to try with a new list in a new app...
Hi , Reza Any advice on that i want fields with attachment or url(link to file) , so how can i achieve both on same field when data source is SharePoint list. or i can create a choice make use select to whether it url or attachment, if url then field appear to get URL and if attachment then ask them to add to main attchment field. How to do this better with creating toi much extra field..need help
I have no idea about this, as it is not something I have tried. I would recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com/
Hello Reza - First of all thank you for your video. I was able to make this work with 2 attachments control and auto tagging them - I read thru your messages and looks like delete is currently not supported and so you have added the Blue Bar. Can you please help me find some work around for this also not messing up the End users experience? I really appreciate your help? The 3rd control you have that allow to delete and without adding new to collection it does remove the attachments. Is there something we can do when removing from the collections, we will remove from the finalattachments collection and save the form or something...
@@RezaDorrani So here is my req. I want only 1 document that I want user to add/edit and tag for signature and other documents i wanted keep them as supporting documents for that request. It’s 1 SharePoint list how can I allow them to put them multiple attachment but allow them or pick one for signature purpose only ?
@@krupeshpatel9173 I would have to try this out to know how. I would recommend checking or posting your query on power apps community forum in case someone has done something similar
Hi Reza, very good solution I use since many months but it turns out, that removing attachments from such sub-lists of attachments does not remove them from the sharepoint list element. Only removing from the full list of attachments removes them from the source. Do you have any advice how I can make removing working if I want to avoid showing the full list?
I love watching your videos. It would be a dream to be able to have you as a resource when I'm developing complex apps and flows. You would help me save so much time!
Wow, thanks Bob!
@@RezaDorrani I highly agree!😁
I missed your videos as I was busy with PL-100 Certification. I had passed the PL-100 this week. I already cleared my PL-200 and PL-900 also.
Now I have to complete the pending videos which I have left. Thanks for your time and efforts on sharing valuable tips. As always you are my super hero.... Reza..
Congrats on passing PL-100, PL-200 & PL-900.
Hope you enjoy all my latest videos.
Thanks for provided the MS doc link and putting it in the description. It's helpful and saves me time from Googling when I want to know more about the topic and I always come back to your videos to refresh my memory.
Glad to hear that! I pack my video descriptions with useful links and more.
As someone who uses the attachment control often--this tutorial still blew my mind!
👍
Reza, great video! Was looking for the a long time
Love watching your videos
Glad to hear!
Once again, thank you for providing this very valuable and useful concept with clear explanations and nicely paced format. We appreciate you sharing your knowledge with all of us.
You're very welcome!
Once again proving your are a power apps master Jedi!!! 🙌
Wow! High praise there. Thank you so much.
Once again, you have the solution I needed to solve a problem. Thank you for putting this video together.
You're most welcome!
Great video and really helpful! I have used it a couple times and today I was trying again and for some reason I could not get my documents to save in my list (although they would tag in the app fine). I finally decided to change the name of my collection (I had made it a little long but nothing too crazy...or so I thought lol) That fixed it! So if anyone is having issues with the files not saving, maybe try shortening the collection name you are using to hold the attachments.
Thanks for sharing.
Great Video, Fantastic Apps. Reza you are the best man, love your videos and your tutorials ❤❤
Thank you so much
You are amazing!!! Watching your video taught me so much I can't even tell you. Thank you so much for all this!
You are so welcome!
this is really helpful and relevant today as well 👍
thank you for creating such helpful and brilliant contents for the whole community out there. Thanks Reza .
You’re most welcome and thanks for watching
Allway learning with you, Reza. Thank you for sharing !!!!
You are most welcome
Outstanding solution and excellent guidance on to use your solution.
Glad it was helpful!
Happy new year Reza. Starting the year with this tutorial video. New knowledge gained
Awesome! Glad to hear that.
Have a great new year!
Thank you Reza. This was very helpful
Most welcome
Thank you for sharing this lesson. So helpful. 😊
Thanks for watching
🔥🔥. Excellent Reza. Thanks again for sharing
Thanks Cris
Congrats Reza, very useful...
Thank You
Happy Monday, Reza!
Happy Monday!
Really very nicely described video.
Thank You so much
Great job, very helpful and well done 👍
Thank you.
Your most welcome
Ops Amazing Reza... Thanks So much
Most welcome
this was super helpful thank you soooo much
You're so welcome!
It is a very useful video, thank you.
Most welcome
Boss tNice tutorials mate, thanks
Most welcome
Thanks Reza for a great video. Loved the way this video was done. I had one question - In my use case, I upload a picture of an employee on my app. I would like to rename the picture name based on another control in form control before the form is saved. Is there way to achieve the same?
Most welcome!
I would say it's possible but not something I have tried or have a video reference for. I will recommend checking or posting your query on forums in case someone has done something similar
community.powerplatform.com/
It is really awesome video and helped me to rename the file in attachment control as the per the category.
But I observed one issue - When I add first all files and delete any already existing file (present in the SP list) and save the record, then it properly delete existing file from control. If I delete any existing file and then add new file and save the record, then it don't delete existing file from SP list and keep as it is. As per my understanding it happened because the collection get refresh in onAddFile event.
Do you have any suggestion to resolve this issue?
Thank you in advance.
The limitation of this approach is that it does not delete during edit mode of form.
Love your videos Reza 😍
Thanks
Hi Reza, helpful video! When I get to the part about clearing the attachments when it comes to adding a new form, I get stuck. When I add a new SharePoint list item, the attachments from the previous item remain on the new list item. I do not have my app set up to allow a new item to be created through the app. I create a new list item on the SharePoint list directly. Will the clearing of attachment step only work if the ability to create a new item is available through the app directly?
Video description has link to download sample App.
As for your issue, I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hi Reza,
Great innovation (as usual). Small issue - if used on Integrated Form, Collection does not like triggering consistently on screen OnVisible, OnNew, OnEdit or OnView. Small adjustment on Items of Attachment control
If(
CountRows(colAttachments) = 0,
ThisItem.Attachments,
colAttachments
)
I also have the DisplayMode of the Attachment control
If(
Len(ddAttachName.Selected.Value) = 0,
DisplayMode.View,
Parent.DisplayMode
)
which forces the user to select an item before "Attach file" is available.
Great resource and I have used it a lot.
Hey Warren,
Thank You so much for sharing the info 🙏🙏
Hey Warren & Reza,
I tried this code, but the problem is with my Sharepoint list item. If I publish this to sharepoint list Item the attachment field is working, renaming is working however, once I save the item, the attachments are not saving.
It is Mandatory that list items gets saved with attachment as I have configured Approval flow using power flow
@@divyanshugupta4992 Hi Divya/Warren, did you get the solution to save the attachment? I'm stuck on same
Hi, thank you for this great video. One question, do you have separate videon on multiple attachment control (last part). Thank you
Welcome!
I do not have a separate video on last part. Video description has link to download app shown in video.
I have condition form like 14:23, then the attachment file who comes to my SharePoint list is just one file, what should i do?
Thanks Reza!
I have not experienced this issue, hence not sure. Video description may have link to download sample app. You can check the code there.
Hi Reza,
Thank you for your insightful video as always.
I have an App with multiple attachments. Thanks to your tip. One question please
When i click on submit, My form does not submit to SharePoint. Is there anything specifically that i need to do for it to submit?
Also if it submits, will only the FinalAttachment Collection submit to SharePoint?
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hi Reza,
Thanks a ton for this! I am facing issues whereby attachment cannot be found on the right-side control panel. I have create an app which enable one to add new documents into the sharepoint document library via Msteams. However, as i was creating the app, the attachment field cannot be found for my document library even though it does for my 2 lists. what can i do such that i can attach a file while creating a document record for my document library?
Video description has link to download sample app.
I have not come across the mentioned issue and hence not sure what the cause could be.
I recommend posting your issue on forums in case someone has experienced something similar powerusers.microsoft.com
Hi Reza, Tha ks for the video...One question though, I was looking at the multiple attachments application which you explained at the end. How can I delete the attachments there.
Delete is not supported since for delete user will need to work with a single attachment control.
fantastic work Raza, I need a detailed explanation for the latest multiple attachment options in one form
video 14:23 mint
I don’t have any latest explanations. This video is the only reference I have. Video description has link to download apps shown in video.
Loved the way explained "Thags"
Thags?
Thank you very much for your videos, they have helped me a lot. I have a question, how can i show in this control the file of a note table record? this table does not have a column of type "file" it only stores the base64 content of the file in a column of type "text"
I do not have a video reference on this scenario and would have to try it out to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Thanks you so much for sharing knowledge.. learnt much from your tutorial. I have a question like What if i wanted to remove only attachments by keeping the rows in SharePoint ... Is it possible through buttons in power apps
You can remove attachments from attachment control.
@@RezaDorrani Thanks much for reply ... After deleting and submitting the form... It is not getting deleted in SharePoint .. again if i fetch all of them are loading again... Am I missing something here ... I'm loading attachments through collections in the gallery using the remove function... It is getting deleted in gallery as well as attachment but not is SharePoint
@@mani0536 Im not sure if you are missing something as I cannot see your App. Video description has link to download sample apps. Certain limitations are in play with this approach. Its been a while since I did this video hence do not recollect much. Worst case scenario you can always leverage flow to delete all the attachments.
@@RezaDorrani Sure .. Thanks...
You can use attachment controls outside of regular forms too! Even uploading to Sharepoint doc libraries
ruclips.net/video/r3UC3TMXhlI/видео.html
Great Video! This is the solution that I have been searching. But may I know how do I add multiple attachment data card in a form?
Thanks!
Video description has link to download sample apps. You can check the logic in it.
I Reza, awesome job!! A question: if I have only one attachment in a record, and i want to remove it (without replacing it with a new one), the collection is not refreshed, and the "edit" on the list is not performed! Any suggestion? Really thanks for all!!
I will have to look at your app in action to provide guidance. I recommend posting your query with screenshots on the forums at powerusers.microsoft.com
Hi Reza, Thanks for sharing this informative video
just one help I need within second App (14:23 - Multiple Attachment Controls in Power Apps)
You didn't explained how to do this, is there any other video to refer please comment link of it.
I have tried with your given code but Attachment not uploading to Share Point list.
Video description has links to download both the Apps. You can check the code in there.
@@RezaDorrani i have downloaded
Also created same thing but not able to upload
Need some explanation regarding how do you take separate attachment controls and how do you removed attach control from final attachment
@@MTaj-xb7js Honestly, its been a while since I did this. I have made the entire app available for users to check the code within it.
@@RezaDorrani Thanks for reply
Hi thanks @RezaDorrani , I have got the solution
now able to upload attachments.
Once again Tanks Lot!
Great Video! Thank you.
Thanks for watching
Hi @reza ,
Great video ...
In the last example how you disabled - not to add any attachments to final collection attachments ?
I do not remember to be honest :)
Video description has links to download the sample App. Check the code in there please :)
If you found out, please let me know, much appreciated !
Hi Reza, Good morning. Great video. Helped me a lot. But one question I have regarding multiple attachment, that if the user wants to remove one attachment they cannot directly remove from their own attachment section "For ex:- Project Attachments" and they need to directly remove them from main attachment. I guess for that purpose you've added that rectangle bar on each section. So, is their anyway that the user can remove the attachment directly from their own section attachment? Once again thanks reza:).
That is the reason I added the rectangle bar. I am not aware of any other workarounds
@@RezaDorrani Got it reza. Thanks for the timely response☺️
Thanks for the video Reza, I have a question on the file sizes, Can we upload large files of more than 100 MB from Powerapps to ADLS or Sharepoint Document Library?
Power Apps is designed keeping mobile experiences in mind. Large files is not an option + even if there are workarounds it would impact performance.
This is great. It helps out immensely. Is it possible to have the OnAdd action also add a 2nd copy of the file renamed with "-Original" added in? Like the user attaches 12345.txt and on the list (and uploaded) the user sees/gets 12345.txt and 12345-ORIGINAL.txt?
Not sure if that's an option. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Thanks for the video!! didn't know that it's possible in PowerApps before seeing this video, i tried the same thing in one of my test apps where i created three attachments fields and passing the final variable to my main attachment field in edit form where i am able to upload new files but while removing any file from the attachment fields it's not saving. dont know if i am doing anything wrong!!
Deleting attachments while editing list item is a limitation with this approach.
Thanks for teaching us the ways to improve our power apps! a question popped up in my head after watching your video, would you say it is likely to apply this attachment control but in a component? So it can be resusable
Nice idea! Would be a good one to try and find out.
Great video as always.
Quick question.
This seems to only work for new attachments, have you found a way to do this with items already attached? You example looks like it's going to work, it even adds new files as expected, however, the attached file is left untouched.
In my case, the users upload an Excel file and make changes to it, however once they are ready to submit the file, I want to add file-Final to the file name.
I can do it with flow, but would much rather avoid using flow. 🤮
I have not tried with existing attached items. I would say possible but not something I have explored.
@RezaDorrani
Thank you for creating such amazing content
Is there a way for using a icon to add attachments ?
Also could you share the video for making the form thats made in the last section of this video
I am not aware of an option to do that.
I have done 200+ videos and do not remember in which video I covered it.
Great video as always, one thing is not clear though is that how can you change category of attachment, for example, an attachment was wrongly classified as "invoice" instead of "project"
User would need to remove it and then add it again.
Hello, Mr. Reza, thank you for the video. I have a question though. For the Multiple Attachment Controls Form in the last part of the video when you try to edit the item you choose from the gallery and hit the submit button again to make your changes it doens't work. The initial submission works just fine though.
Video description has link to download sample App.
As for your issue, I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Rezah!!! You're amazing😍😍🥰🥰😘😘
Thanks
Many thanks! I have a PowerApps form that saves to SPO and it includes attachments. Users should only have the "Add" permission, not "Edit". It appears that for SPO list item attachments, the list item gets created first and saved, then the attachments are added. Do you have any recommendation on how to save attachments to a list item thru PowerApps (likely with Power Automate) even if the user cannot "Edit" the form?
I do not have a specific video reference on the mentioned scenario and would have to try it out to provide guidance.
I will recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com
Great video. Thank you. How to get contents of an image Attachment of SharePoint to MS Word?
I have no idea how to do that. I would recommend checking on forums in case someone has done something similar
powerusers.microsoft.com
Reza you are awesome!!!!!!!!!!!!!!
Thank uuuuu
Reza, Thank you so much for this control. I'm having trouble with the position. It won't scroll with the form. It's not staying at the position I want which is to the right of the attachments card. Yes I'm a powerapps newbie.
I would have to look at your App in action to provide guidance. I would recommend to post your issue with screenshots on the forums at powerusers.microsoft.com
@@RezaDorrani thank you for your reply. I ended up using another form to show the attachment viewer and that works. I did try to put the viewer in a custom card but it wouldn't take it.
Hi Reza, wonderful video. I do have a question though. In my powerapps form integrated to sharepoint, I am able to attach the files normally in new form mode but in edit mode, the file attached is not being saved. In the edit mode of the app, there are no runtime errors but as soon as I open the edit form, run time error occurs on the attachment section. I have tried refreshing the SP list, delete and add the attachment column but nothing works. Can you please help me on this? The error says unknown error occured
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Thank you very much for another brilliant video! Any idea why I am getting the dreaded "Incompatible types for comparison. These types can't be compared: Enum, Text." in the Items property for the Attachments Control? The view form lists all the items but it just won't filter like your solution is doing. Thanks again.
Video description has links to download sample Apps.
As for your issue, I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hi Reza, first of all great tutorial and design! I am struggling with a slight modification of the file name, as I do not want to use a dropdown, but a text input instead. Unfortunately, then all files are always labelled with the latest textinput, so they have all the same filename. Do you have any idea how to fix this?
The technique shown in video does not put out same file names. It does not matter if its dropdown or text input. There must be something thats not done correctly at your end. Video description has link to download the app showcased in video I believe.
@@RezaDorrani Thank you for the quick reply, that is awesome! Unfortunately, I am still stuck here. With the dropdown it works for me. I need to keep the file extension when renaming the file. Therefore I split the original name and replace the part before the extension. I assume here comes the trouble, but I did not find the key issue yet...
@@akurzphysik I do not have a video reference on this scenario and would have to try it out to provide guidance. I recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Hello Reza, really nice video, super helpful. In the multiple attachments implementation, do you know how can I delete a file from the SP list when I delete it from the childs? Thank you!
You will have to delete it from the main attachments section. That is the reason why I added a rectangle control on top of the attachment type sections to avoid user from deleting there.
@@RezaDorrani There is still an issue of showing the removed item from the main attachment section in the respective child attachment section. Example, if i remove a travel attachment from the main attachment section, it still shows in the travel attachments section. Any idea how to not show the removed items in the child sections as well ? Obviously, the child attachments reflect correctly after the form is submitted and clearcollect for each attachment section is done on submit or by returning to the dashboard screen, but I would like to show even before submitting the correct attachments in each section.
@@mikhan2665 I would have to try that out. Im not sure if there is a good option for this scenario.
Hello Reza I love your videos , they helped me a lot on my current job . Thank you
I also have a gentle request, can you elaborate more on multiple attachment controls . I want to create 6 separated controls for attachments. Do you have any tutorial for that? Thanks again
Thanks for watching and liking my videos.
The multiple attachment control's part is a bit complex and again works on naming standards to define the location of attachments.
Video description has link to download the sample App for multiple attachments. All the code is in there :)
@@RezaDorrani I tried to import the app but it gives an error :(
@@tihralahn App will not work directly. Data sources will have to be connected. Best to post your issue with screenshots on forums at powerusers.microsoft.com
@@RezaDorrani done :) it’s called multiple attachment wizardry
@@tihralahn great title:)
There are many experts on the forums who assist in their free time. I only go to Forums in my free time :-)
Thanks so much RD!
Welcome
Hi Reza,
As I follow this video, I notice that you don't show us on how to remove the attachment in case of misuploading at the new form. I searched through this comment section and found that removing unwanted attachment is unavailable with this approrach. Is that correct ? Because unable to remove misuploading attachment is quite annoying even though we can temporary fix this with the "remove all" button (call the Clear() function) but that isn't the best experience for the user, since the "X" button to remove still visible and when click on it, it remove the item visually but not in the collection behind
You can delete attachments when adding a new item.
When editing an item, delete attachments would not work. You would need to call flow to do that.
Thank you so much for the great demo. I'm not a super user and unable to get to how to add multiple attachment control that you created in this video in the end? Can you please help me.
Thank you in advance!
The video description has links to download both the sample Apps.
To add multiple attachment controls, you can unlock the attachments data card in form control and then go to fields and add another one.
@@RezaDorrani thank you 😊
Awsome Video. How to validate 0 byte attachment while filing the form?
I am not sure how to do that. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Good video, a question. I need to be able to extract the path and name of a file that is on a local server. Can I apply something similar to obtain these values? At first glance, I can easily obtain the name but not the path.
I have not tried extracting the path hence not sure. I will recommend checking on the forums at powerusers.microsoft.com/ in case someone has done something similar.
Thank you for your videos. It did help a lot. But how to remove the attachment file from attachment control and also from sharepoint list?
I believe I mentioned in video that removal is a challenge.
Hi Reza, hope you are doing well. One question - Can we check attachment size using any power Fx formula to validate if attachment has any content in it ? Can we do it using powerapps only without exploring the power automate route ?
I don’t think so. May be check on forums in case someone has done something similar.
Hi Reza, great video, I followed it and got my tagging working very well but my design is on the form itself not the gallery as is your instance. I can add and also clear the collection but when I open or view a list item, the attachments are not loaded. I have cracked my head but unable to resolve this issue. How do I load the attachments with the SharePoint menus: edit and view for the selected item? Your support is much appreciated.
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Hi Reza, Very nice video, thank you very much!, One question. I've tried this function with PDF files, and i'm not getting the categorization in the name file... do you know why? When I use another type of file it does... Then only file type that is not working is with PDFs...
I have not come across this issue hence not sure. I recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
Hi Reza, great video as always. One question though, I have multiple Attachment controls and multiple collections. How can I tell PowerApps what collection should be submitted to Sharepoint? It uploads the wrong collection now (not the FinalCollection with all attachments in it).
Video description has link to download sample app. It includes all the logic I showcased in the video.
Thanks for the video Reza. I'm having issues with my attachments. I have two buttons on my forms "Save in Draft" and "Submit". When I click either button, and go back and view or edit the form, the attachments are not saving to the record. I have an edit icon on gallery, and set the OnSelect property of the Icon, I listed the following formula: Can you tell me what I'm doing wrong?
Set(
varFormMode,
FormMode.Edit
);
Set(
varItem,
ThisItem
);
Navigate(CreateNew);
ClearCollect(
colAttachments,
ThisItem.Attachments
)
I will have to look at your App in action to provide guidance. Video description does have links to download and try out the sample App. You can look at the code base there. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com. Screenshots are very important to set context.
Very nice video. I think also we can control the security of the attachment based on the tagging. Example: If you have previously uploaded attachments, a manager can delete them for you if he will be having the access to edit the form. So by tagging, you can filter what to display even if he is a manager to avoid deleting the attachments. Will that work?
Might work! Have not tried it so not sure.
Thanks for this, Reza!
One of the drawbacks of this attachment control is that attachments (i.e. a PowerPoint file) cannot be edited anymore as can be done in the standard SharePoint interface: the attachment control requires the files to be downloaded, edited locally before being uploaded again.
QUESTION: is there a way to edit attachments without needing to download them?
Maybe an idea for a next video :-)
Editing of attachment is not possible in Power Apps. Only option would be for user to download file, make changes and upload with same name.
@@RezaDorrani Hello, I want to show the attachment as a preview when a user clicks on it, without downloading it. How can I do this?
@@vigneshbasuthkar1532 I think I did a video on attachment viewer component. Check that out.
Thanks Reza - is it possible to open the attachments in the respective 365 web and/or desktop app instead of downloading when selected?
I believe it only downloads
@@RezaDorrani Darn. Thanks...I noticed when clicking the attachment for a list item when viewing the actual list, it opens the file in a new tab.
@@bblande It does may be based on browser settings. Not an area I have investigated much in.
Hello Reza, Thanks for the videos! Super helpful. I have a question - Is it possible to send the attachments to flow instead of SP?
Yes, I have done videos on sending files to flow.
@@RezaDorraniSorry, I tried looking for them. Could you please share the link for one of them? Appreciate your help.
@@mohammednizamuddin1348 I myself do not remember. You would need to check for it or alternatively try checking on forums powerusers.microsoft.com/
Hi Reza, this is great! May I know what the code is for submitting the tagged attachments to a sharepoint list? Thanks.
I did this video years ago. Video description may have link to download sample app. You can try and check.
I have a doubt in the multiple attachments app. when we edit a record, can we remove an attachment that is already patched to the list
I believe I did show that in the video. Video description has links to download sample apps.
@@RezaDorrani If I remove the attachment directly from the finalattachment datacard it works fine. But if I remove the attachment from other attachment cards, the file removes from final attachment card as well but it won't remove the file from sharepoint list.
@@nandu8598 I believe that is a limitation with this approach.
Hi Reza,
Thanks for the video.
Quick question, is it possible to edit the attachments by deleting them and adding more to the same SharePoint list item? I seem to be struggling using this method.
I don’t remember if I covered that in video.
Video description has link to download sample app shown. You can check the code in it.
@@RezaDorrani Yes, it's not in this video but you have another video where you show how to add tags into the names of attachments by using a custom collection 'colAttachments'. I don't believe this works when attachments in SharePoint. i.e. deleting and adding different ones.
I was hoping you could confirm if I'm correct so I don't keep searching for a non-existent solution :)
@@salrathor1 I don’t remember to be honest as I did these videos years ago
Hi Reza thank you for all your help, I have an issue and maybe you know, I have a custom sharepoint list form with poweapps but when I click on the EditForm and then Edit Fields I cannot find the attachments control in there to add it to the form, it simply does not exist, and I don't find anyone else having this probablem. Hope you know why.
Count me in that anyone else :)
I have not experienced this issue either
Hi Reza,
Thanks for the content. I really appreciate your hard work. Can you please create some videos related to Mix reality and PowerApp.
Thanks Gaurav.
I will add it to my backlog. I did a few mixed reality based videos for user groups a year ago. Check ruclips.net/video/1KhQyhhMvYE/видео.html
Hi Reza, thank you so much for all the wonderful videos you make. They always are helpful. My Question, you have used the tag dropdown button outside of the form control, since your form is not scrollable it works great. In my case my form scrolls because I have more fields, and hence the problem is the tag control doesn't stay in place. Any suggestion to overcome this issue? Thanks in advance!
Reason I put it out of form control is because when form is in view mode, it will not be editable for refining.
For new and edit forms you can place it in your form.
@@RezaDorrani Thank you so much for the prompt response. I need mine also to be Editable for refining , is there a way i can manage the control to stay in a specific Y position while the form scrolls?
@@mashohbd5838 I would have to try it out to provide guidance. I will recommend posting your query on forums at powerusers.microsoft.com/ May be someone has a solution for this.
@@RezaDorrani Thanks , I will do That!
I would split the form in different tabs, so you don't have to scroll to reach all fields
Hi Reza, You're videos are the Go-to videos for me as I start my power platform journey now. Thanks a lot! I've a scenario where my SP list is split in to 3 forms in 3 different tabs and each tab has a form with different attachment fields. On submit in the 3rd tab, I've to patch all the values to SP list. All attachments in all 3 forms should be linked to one attachment field in my SP list so that the user can see the proof documents for that request. Is it possible to do this way?
Most welcome!
Should be possible but not something I have tried or have a video reference for.
As usual great informative video. But i have problem with the attachments.
The attachments are being uploaded if i use the collection (colAttachment) as items but if i use Parent.Dafault then it's working.
I will have to look at your App in action to provide guidance. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
Is there a video somewhere for the demo you showed at the end?
No. However, video description has a link to download both the sample Apps.
Great Video! i have a small doubt , in edit mode if we remove some attachment how do we manage it? I am not able to implement the same
Remove is not supported with this technique.
I have the same issue. Would there be a way to remove the attached files in edit mode?
@@charlesdawnbeltran9603 That is a limitation. I have not found a way.
hi reza, thank you so much for your demo. one question, lets say the user come back to the form and delete one attachment, is it the deleted attachment will also be deleted or remove in the sharepoint list?
From what I remember of this video - Yes.
Video description has link to download sample app. You can try it out and check.
Hi Reza,
Thank you so much for your hard work. Do you have example how to patch attachments as collection into new submit form for creating a sharepoint item in powerapps instead of editing the existing item? Always appreciate your help.
Patch function does not support attachments.
Technique shown in video is the approach I know of.
@@RezaDorrani Thank you so much for your quick response. Appreciate it very much!
Hi Reza, Happy New Year,
Good video and nice explanation. I am having doubt at 10.40. How you are adding the attachments inside the collection using ThisItem.Attachments. In my case, I am not getting the attachments column in the suggestion after typing ThisItem.
Happy new year!
If your gallery is connected to a SharePoint list directly, then you should get ThisItem.Attachments.
Another reason could be that you might not be in the right context of the code (context of gallery).
I would also recommend posting your issue with screenshots on the forums at powerusers.microsoft.com
@@RezaDorrani Hi Reza,
I written the same code what you have written at 9.20 . My issue is that the tags are repeating..
For ex : If tag selected is PowerApps and file name is Hello.
Uploading 1st time : PowerApps-Hello
Uploading 2nd time : PowerApps-PowerApps-Hello.
Each time while uploading, all the files in the collection are getting updating . Am I missing anything ?
@@sathyashiva1373 I will have to look at your App in action to know exact cause of your issue. I will recommend posting your issue with screenshots on the forums
@@RezaDorrani Hi Reza,
I made a mistake on my side. I missed a ".Value " after typing the tag collection name in the onaddfile property of attachment control. So it started creating multiple duplicate tags. Now its working fine. Thanks for this amazing video.
@@sathyashiva1373 Glad it worked!
Hi Reza,
I've tried this function in an app that I'm building and seems amazing!
I have 2 questions (and let me introduce a little bit): This app will have multiple screens and I'm adding the attachments field to all of them, but on each screen, the field is renaming all the files attached again. So:
Q1: How can I fix the name of the files already added and don't rename them when I add a new one on another screen?
Q2: It's possible to use the Patch function and keep all the attachments of all screens?
Thanks a lot for all knowledge you share with us! It's truly helpful.
1 - I have not tried with multiple screens so not sure. I would recommend posting your issue/query with screenshots on the forums at powerusers.microsoft.com
2 - Patch does not support attachments
Hey Reza, first of all thank you for your video. I am trying to implement a version of your solution but when I attempt to download the files from the canvas app, I am unable to do so and I see a “Couldn’t download - No file”. May I ask if you had any experience with this issue? Thank you!
I have had no issues with it
Thank you so much for this wonderful video. While tagging attachment i am unable to reference displayname in the updateif. If I only update the name field, then I see it getting renamed in the collection. Will it be possible for you to recheck if new update of powerapps has given away with displayname in attachments control.
There is no update that has affected this behavior. Video description has link to download sample app. Try checking the logic there.
@@RezaDorrani them you so much for replying...the sample app works but if I create a new app and then use the attachment control -on add file-updateif doesn't find the display name field.
I even copied your updateif script as it is..yet it isn't working...if you have little time will it be possible to try with a new list in a new app...
@@imranpearl I will not have the bandwidth to test it out with new app. I would recommend posting your query on forums powerusers.microsoft.com
@@RezaDorrani thank you bro..will do that. You are a superstar can't thank u enough for sharing your expertise with all of us 😍
Hi , Reza
Any advice on that i want fields with attachment or url(link to file) , so how can i achieve both on same field when data source is SharePoint list.
or i can create a choice make use select to whether it url or attachment, if url then field appear to get URL and if attachment then ask them to add to main attchment field.
How to do this better with creating toi much extra field..need help
I have no idea about this, as it is not something I have tried. I would recommend checking or posting your query on forums in case someone has done something similar powerusers.microsoft.com/
Hello Reza - First of all thank you for your video.
I was able to make this work with 2 attachments control and auto tagging them - I read thru your messages and looks like delete is currently not supported and so you have added the Blue Bar.
Can you please help me find some work around for this also not messing up the End users experience? I really appreciate your help?
The 3rd control you have that allow to delete and without adding new to collection it does remove the attachments. Is there something we can do when removing from the collections, we will remove from the finalattachments collection and save the form or something...
Most welcome!
I am not aware of any other workarounds. This video is the best reference I have.
@@RezaDorrani
So here is my req. I want only 1 document that I want user to add/edit and tag for signature and other documents i wanted keep them as supporting documents for that request.
It’s 1 SharePoint list how can I allow them to put them multiple attachment but allow them or pick one for signature purpose only ?
@@krupeshpatel9173 I would have to try this out to know how. I would recommend checking or posting your query on power apps community forum in case someone has done something similar
Thanks always Reza. Can you assist with the video link that display how you achieve the multiple attachments
Video description has link to download sample app. You can check the code in it .
Hi Reza, very good solution I use since many months but it turns out, that removing attachments from such sub-lists of attachments does not remove them from the sharepoint list element. Only removing from the full list of attachments removes them from the source. Do you have any advice how I can make removing working if I want to avoid showing the full list?
I belive that was the limitation I shared in this video. I'm not aware of how to avoid showing full list.