Awesome. This is great. I had to figure all of this out by myself just last week. Nice to have a few extra tips that I can now go back and make some small adjustments to make it work even better. I add, if you want to be dynamic with the folder you want to share to, you can easily create a variable in powerapps first with the folder/s name and add that in when creating the file. I had to do this as the documents, I was uploading had to go to a specific folder based on the task the document was for.
@ShanesCows2 ай бұрын
Love it, thanks for sharing
@anthonyschoester11922 ай бұрын
Hi, i'm interessed in that to store the uploaded docs in a dynamic folder based on my custom reference per record, can you share the details?
@ShanesCows2 ай бұрын
@@anthonyschoester1192 This video has some of hte mechanics. kzbin.info/www/bejne/d3m6p3poeJ6ph9E
@anthonyschoester11922 ай бұрын
@@ShanesCows Thank for that, i fixed it today and it was more easy then i thought 😅
@jeremys19772 ай бұрын
Thanks for this. I've always used attachments in form controls. But this really adds some additional functionality. I could also see the potential for adding the files to a dynamically selected doc library or folder.
@ShanesCows2 ай бұрын
Perfect idea! 😎
@gosyomei2 ай бұрын
Thank you for the very easy-to-understand content. I'll implement it in my app right away!
@ShanesCows2 ай бұрын
Awesome, love to hear that
@Rich-hm9ux11 күн бұрын
Very well explained but not sure how this could work with a new form scenario since the new form does not have an ID yet in the main list. How would you account for new submissions?
@ShanesCows10 күн бұрын
Put the flow code in OnSuccess of the form. You can then reference Self.LastSubmit.ID to get the ID of the new record.
@FrancescaHulbert2 ай бұрын
Thank you for the video. The explanation is very clear. One question if we keep getting an error about expecting a string and getting null. Do you have any idea what the issue may be?
@ShanesCows2 ай бұрын
Usually that is because whatever dynamic data you are passing in is blank. So maybe you are saying get Field X but sometimes fieldx is blank. That would cause that error.
@spen24312 ай бұрын
As always .💥💥💥💥💥💥 Thank You
@ShanesCows2 ай бұрын
You bet, glad it helped.
@mr_pikaАй бұрын
Hi Shane , awesome video as always, I just have a one doubt what if I creating a new list item there i want to upload files , I be missing the parent ID right bc the item is not even created yet. Should I use Last(list).ID+1 as parent ID for new item creation but it feel like not reliable . I really love to get your insights ❤
@ShanesCowsАй бұрын
Change your order of operations so you Create the Parent first and then upload the file. So don't have OnAddFile do the upload put that code in OnSuccess of the form.
@nickc6552 ай бұрын
Thanks Shane, I will use this for the document control app I am working on. Did you draw for the radio at PPCC yet?
@ShanesCows2 ай бұрын
Awesome. I will check with the team but I think I am waiting on them to give me the list. I will try for a Nick. 🤩
@nickc6552 ай бұрын
@@ShanesCows Fingers crossed!
@ivanpalacios39652 ай бұрын
Very nice! 💪😎
@ShanesCows2 ай бұрын
Happy to help. Have a great day. 🐶
@billpatterson13712 ай бұрын
Nice one Shane! Do the same principles apply for choosing Dataverse for the document library?
@ShanesCows2 ай бұрын
I think SharePoint doc lib is better than storing files in DataVerse in a lot of scenarios. That edit and view docs in browser is just too good with SharePoint
@MyMSZA2 ай бұрын
@@ShanesCows Hi Shane, this would be just perfect without that delegation issue. Is there maybe any way with Dataverse to edit and view docs in the browser and skip even the SP library or is it the same as with SP list attachments?
@tomka50502 ай бұрын
Hello Shane, what effects does placing a filter function inside a gallery on performance and the number of API calls?
@ShanesCows2 ай бұрын
As long as the filter query is delegable it is performed on the server side, reducing the payload to the client. So filtering is a good thing. :)
@Eth_MeyАй бұрын
Great video i had a form in but this is next level brilliant content 🎉 is how can one preview a zip file or video file? When i upload the file it works but cant see which file i would like to open if i attach a zip or video just asking if possible but great work brother
@ShanesCowsАй бұрын
Glad it helped. Attachments are the worst in my book. 😎 But to be fair I have felt that way since SharePoint 2003 😲
@drewbdoo2 ай бұрын
Great video - for me, I can't seem to make it refresh correctly within the upload code - I keep having to manually refresh or have some other process outside of the upload refresh for me, doesn't seem to be firing after waiting for power apps.
@ShanesCows2 ай бұрын
You have your flow set to respond to power apps and power apps waiting for it, that should work. Other things we have seen is someone creating a timer and on timerend having it do the refresh. Time waits like 3 seconds or so.
@bitokay1472 ай бұрын
I just launched a invoicing tool sharepoint site, We use the sharepoint list to upload the invoice as attachment and fill out necessary fields as a invoice submission to be processed. Shall I change this attaching process? They also have ai builder scanning form for invoices t be uploaded and fields filled automatically. Can this be my option rather than document libraries ?
@ShanesCows2 ай бұрын
If what you are doing works for you then don’t change for me. 😎 Just if you find attachments don’t work know that doc libs usually work better. Sounds like you are doing cool stuff. 🤩
@SaranLearning-q3rАй бұрын
Brilliant Video, Shane you're PowerApps legend!!!! I have a question: this works perfectly for uploading existing items linked to Gallery.Selected. How can I apply this to new items/records? I have a SharePoint list where users submit a form and upload documents as list attachments. I’m considering directing these uploads to a SharePoint document library instead, so users can edit them dynamically. However, I’m not sure if it’s possible to preview the attachment before it’s added to the SharePoint document library. Is there a workaround for this? Additionally, I creating variable to generate a unique number when the form is submitted and sent to the SharePoint list Form_ID column . How can I link this Form_ID to the document uploaded to the document library?
@andrewproudman9522 ай бұрын
Can this be used to upload multiple images from the camera
@ShanesCows2 ай бұрын
Yes, multiple uploads is covered in this video kzbin.info/www/bejne/mZvGdXttlNtpmac
@caraziegel76522 ай бұрын
I tried using this but my users couldnt use the button to save a document - not sure if it was permission or license - my manager who was a co-owner could also use teh button. but testers couldnt.
@ShanesCows2 ай бұрын
It is most likely permissions as the flow will run as the user who presses the button. So they will need access to the doc lib. License should be fine if they are using the Power Apps app
@ravirachchh40622 ай бұрын
What is best way to upload large sized documents using power apps? Attachment control comes with file size limitations
@ShanesCows2 ай бұрын
I have never gotten anything larger than 50 MB to upload reliably. 🤷
@ravirachchh40622 ай бұрын
@@ShanesCows any alternative approach we can take to implement this need?
@aladris54432 ай бұрын
Sharepoint size limit is i think 250mb which you can increase it in attachment control in powerapps
@andrewproudman9522 ай бұрын
Can you use this way to add multiple files from the camera control
@LemasterDave2 ай бұрын
it's silly to have to do this when there is an Attachments folder under the List already with a subfolder for each item id.
@ShanesCows2 ай бұрын
I think all of that infrastructure is hidden, at least I don't know how to address it directly or use it when doing things like editing a doc?
@radiosonicfan17262 ай бұрын
Intestering video. Watched a portion, going to have to finish later. OMG losing my mind. Moving cards in Power Apps is so glitchy. They won't move to where I want. Then it starts randoming moving stuff even though snap columns is off.
@ShanesCows2 ай бұрын
Turning snap to columns off never goes well. Turn it to 12 columns and that is the best, most flexible scenario
@dlutchner2 ай бұрын
Great video. Your scenario is great for uploading a new file. However if you build a Power App to manage multiple users and updating a document then you could hit an issue. For instance if the document is open (e.g open in Word) then the App cannot save the library metadata until the document is closed. I made a video about this kzbin.info/www/bejne/lWmaiGepobZpbtk Be interested in your thoughts.