Use Document Libraries not Attachments with SharePoint

  Рет қаралды 18,248

Shane Young

Shane Young

Күн бұрын

Пікірлер: 50
@CameronPawluk
@CameronPawluk 2 ай бұрын
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.
@ShanesCows
@ShanesCows 2 ай бұрын
Love it, thanks for sharing
@anthonyschoester1192
@anthonyschoester1192 2 ай бұрын
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?
@ShanesCows
@ShanesCows 2 ай бұрын
@@anthonyschoester1192 This video has some of hte mechanics. kzbin.info/www/bejne/d3m6p3poeJ6ph9E
@anthonyschoester1192
@anthonyschoester1192 2 ай бұрын
@@ShanesCows Thank for that, i fixed it today and it was more easy then i thought 😅
@jeremys1977
@jeremys1977 2 ай бұрын
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.
@ShanesCows
@ShanesCows 2 ай бұрын
Perfect idea! 😎
@gosyomei
@gosyomei 2 ай бұрын
Thank you for the very easy-to-understand content. I'll implement it in my app right away!
@ShanesCows
@ShanesCows 2 ай бұрын
Awesome, love to hear that
@Rich-hm9ux
@Rich-hm9ux 11 күн бұрын
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?
@ShanesCows
@ShanesCows 10 күн бұрын
Put the flow code in OnSuccess of the form. You can then reference Self.LastSubmit.ID to get the ID of the new record.
@FrancescaHulbert
@FrancescaHulbert 2 ай бұрын
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?
@ShanesCows
@ShanesCows 2 ай бұрын
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.
@spen2431
@spen2431 2 ай бұрын
As always .💥💥💥💥💥💥 Thank You
@ShanesCows
@ShanesCows 2 ай бұрын
You bet, glad it helped.
@mr_pika
@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
@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.
@nickc655
@nickc655 2 ай бұрын
Thanks Shane, I will use this for the document control app I am working on. Did you draw for the radio at PPCC yet?
@ShanesCows
@ShanesCows 2 ай бұрын
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. 🤩
@nickc655
@nickc655 2 ай бұрын
@@ShanesCows Fingers crossed!
@ivanpalacios3965
@ivanpalacios3965 2 ай бұрын
Very nice! 💪😎
@ShanesCows
@ShanesCows 2 ай бұрын
Happy to help. Have a great day. 🐶
@billpatterson1371
@billpatterson1371 2 ай бұрын
Nice one Shane! Do the same principles apply for choosing Dataverse for the document library?
@ShanesCows
@ShanesCows 2 ай бұрын
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
@MyMSZA
@MyMSZA 2 ай бұрын
@@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?
@tomka5050
@tomka5050 2 ай бұрын
Hello Shane, what effects does placing a filter function inside a gallery on performance and the number of API calls?
@ShanesCows
@ShanesCows 2 ай бұрын
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
@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
@ShanesCows Ай бұрын
Glad it helped. Attachments are the worst in my book. 😎 But to be fair I have felt that way since SharePoint 2003 😲
@drewbdoo
@drewbdoo 2 ай бұрын
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.
@ShanesCows
@ShanesCows 2 ай бұрын
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.
@bitokay147
@bitokay147 2 ай бұрын
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 ?
@ShanesCows
@ShanesCows 2 ай бұрын
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
@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?
@andrewproudman952
@andrewproudman952 2 ай бұрын
Can this be used to upload multiple images from the camera
@ShanesCows
@ShanesCows 2 ай бұрын
Yes, multiple uploads is covered in this video kzbin.info/www/bejne/mZvGdXttlNtpmac
@caraziegel7652
@caraziegel7652 2 ай бұрын
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.
@ShanesCows
@ShanesCows 2 ай бұрын
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
@ravirachchh4062
@ravirachchh4062 2 ай бұрын
What is best way to upload large sized documents using power apps? Attachment control comes with file size limitations
@ShanesCows
@ShanesCows 2 ай бұрын
I have never gotten anything larger than 50 MB to upload reliably. 🤷
@ravirachchh4062
@ravirachchh4062 2 ай бұрын
@@ShanesCows any alternative approach we can take to implement this need?
@aladris5443
@aladris5443 2 ай бұрын
Sharepoint size limit is i think 250mb which you can increase it in attachment control in powerapps
@andrewproudman952
@andrewproudman952 2 ай бұрын
Can you use this way to add multiple files from the camera control
@LemasterDave
@LemasterDave 2 ай бұрын
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.
@ShanesCows
@ShanesCows 2 ай бұрын
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?
@radiosonicfan1726
@radiosonicfan1726 2 ай бұрын
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.
@ShanesCows
@ShanesCows 2 ай бұрын
Turning snap to columns off never goes well. Turn it to 12 columns and that is the best, most flexible scenario
@dlutchner
@dlutchner 2 ай бұрын
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.
Power Apps AddColumns and Data Shaping
19:20
Shane Young
Рет қаралды 6 М.
Power Apps Variables - All 5 Types
30:11
Shane Young
Рет қаралды 12 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 54 МЛН
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 14 МЛН
PowerApps List Relationships with SharePoint
25:41
Shane Young
Рет қаралды 12 М.
Don't use PowerApps Gallery Selected Item
12:44
Shane Young
Рет қаралды 13 М.
Power Apps ParseJSON - JSON is a core skill
28:45
Shane Young
Рет қаралды 29 М.
7 Steps to Write Standard Operating Procedures that ACTUALLY Work
15:21
Layla at ProcessDriven
Рет қаралды 78 М.
Intro to APIs for Power Apps and Power Automate
29:43
Shane Young
Рет қаралды 27 М.
The SIMPLEST Way to Organize Your Files and Folders
10:14
Lea David
Рет қаралды 244 М.
Getting Started with #Dataverse explained for SharePoint People
25:58
SharePoint Fundamentals: The SharePoint Document Library
14:52
Daniel Anderson
Рет қаралды 11 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 54 МЛН