Advanced Power Apps File Uploads - Create folders and set metadata

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 66

  • @SylviaRodriguez-v9d
    @SylviaRodriguez-v9d 7 днів тому +1

    Shane, thank you so much for this video! It's been so helpful! I am a total beginner here and have been finding it rather frustrating getting some things to work. What I am aiming at is, when someone uploads a file in PowerApps, I want this file to go into a folder in a SharePoint library that contains the name of the legal entity of the related task in PowerApps. With your help, I have managed to use dynamic folders and this is working really well. My issue now is removing a file from that SharePoint folder when this is deleted in PowerApps. I just haven't figured out how to do that.

    • @ShanesCows
      @ShanesCows  7 днів тому

      This video I show how I built a full document library explorer. Included uploads, previews, and DELETEs 😎 ua-cam.com/video/u-b8w9ea1kk/v-deo.html

    • @SylviaRodriguez-v9d
      @SylviaRodriguez-v9d 7 днів тому

      @@ShanesCows Many thanks for sharing that! How did I miss that one? 🙂 Going straight into it. Thank you!!!

  • @donaldhersey
    @donaldhersey Місяць тому +1

    Another great video, bravo ... definitely signing up for your training classes soon

  • @facun_OK
    @facun_OK 6 місяців тому +1

    Thanks for this amazing video! I have a question... Has anyone tested the attachment control related to how many files and size can be uploaded to a library at once?

  • @jefflund5685
    @jefflund5685 5 місяців тому +3

    Nice video. The only thing I question is the extended "If" logic with the blank "Project Number". Why not set the DisplayMode of the File Upload control to "Display" when either condition is blank, and "Edit" when both are not? That way, they could not select a file until the required information is already entered, and it simplifies the logic in the addfile routine.

    • @ShanesCows
      @ShanesCows  5 місяців тому +2

      I don't hate that Jeff. 🤩 The fun of Power Apps, there is usually 10 ways to do everything.

  • @dougydoe
    @dougydoe 6 місяців тому +1

    Great video. I really enjoyed that and picked up a number of tips. Thanks

    • @ShanesCows
      @ShanesCows  6 місяців тому +1

      Glad it was helpful!

  • @spen2431
    @spen2431 6 місяців тому +1

    Nice one. Saved/Bookmarked for reference in the future. As always, thanks for sharing Shane. 💥💥

  • @oluwatobiyusuf
    @oluwatobiyusuf Місяць тому +1

    Thank you Shane

    • @ShanesCows
      @ShanesCows  Місяць тому

      Happy to help. Have a great week!

  • @douglasnoble1750
    @douglasnoble1750 3 місяці тому +1

    Thanks, your videos have really helped my understanding of Power Apps. Is there any way of sending multiple person records to a Person or Group field as meta data fields when uploading a file in sharepoint using flow? I've previously done it with patch?

    • @ShanesCows
      @ShanesCows  3 місяці тому

      Yes, it is the very similiar. Go to flow, add the multi-person field to the action and manually configure it. Then look at the Code view. It will show you what it needs. Then you need to send the info over in that format so you can plug it in. :)

    • @douglasnoble1750
      @douglasnoble1750 3 місяці тому

      @@ShanesCows Thanks for the speedy response, I will give it a try. As you say - It keeps getting angry at me!! :)

  • @krishnankuppaswamy7553
    @krishnankuppaswamy7553 Місяць тому +1

    Helpful 🎉

  • @janicemendoza376
    @janicemendoza376 3 місяці тому +1

    Great content as always! I have a question. I have a toggle button before attaching the files. When toggle is on, create the folder / file on this SP folder. If toggle is off then create it on this other SP folder. Sounds simple but not sure how to incorporate in the flow. Appreciate your help Shane! :)

    • @janicemendoza376
      @janicemendoza376 3 місяці тому +1

      Oh I figured out a workaround by creating 2 flows and using value of toggle to set visibility of flows! :) I have another question...if I want to share the folder link instead of the file link? How can that be achieved? Thank you!

    • @ShanesCows
      @ShanesCows  3 місяці тому

      Love it. Good job

  • @temidayolonge4566
    @temidayolonge4566 6 місяців тому +1

    Great Shane. Nice touch on Buddy Pics😂

    • @ShanesCows
      @ShanesCows  6 місяців тому

      Thanks! Always like to sneak in the dog 🐶

  • @ProfessorPopTarts
    @ProfessorPopTarts 6 місяців тому +1

    Hey Shane - I have a question on storage solutions for uploads. Which is better using Dataverse to store documents (PDF's, TIF's, etc) as an attachment or using Sharepoint? I love your videos they have meant the world to me in my quest to become a better powerapps developer. You are always at the top of my feed to watch. Thank you for all that you do and share with the community.

    • @ShanesCows
      @ShanesCows  6 місяців тому +1

      I think it is easier and cheaper to store them in SharePoint. :) Of course depends on exactly what you are building but that is where I start from.

    • @ProfessorPopTarts
      @ProfessorPopTarts 6 місяців тому

      @@ShanesCows I'm developing my project using dataverse and the expense side isn't the main concern. I'm shooting for something that is a document management solution for our AP / AR system so parties with buy in to the documents can view documents on the fly for approvals or general information. So i wasn't sure which solution would be more responsive and allow for dynamic uses down the road. Think attaching proof of receipt to invoices when we invoice customers.

  • @maksimdmitrenko
    @maksimdmitrenko 6 місяців тому +1

    Hello! At 18:14 we can see a new green icon "+" (not Paper clip). How did you change the icon?

    • @ShanesCows
      @ShanesCows  6 місяців тому

      It is an Icon on top of an invisible paper clip. I show doing that in this video I am pretty sure. ua-cam.com/video/cjcDH7_v6cE/v-deo.html

  • @josecarlosbenitezmeyer645
    @josecarlosbenitezmeyer645 6 місяців тому +1

    Amazing Video,
    Is it possible to check how many items are in a folder and if the quantity of items its the same doesnt let the user save a form? And is it possible to check a folder inside a folder for the same reasons?
    Thanks Shane you have help me severous times!

    • @ShanesCows
      @ShanesCows  6 місяців тому +1

      Yes. The best I can offer to help is this video where I built a document library explorer. You will see how I dealt with folders. ua-cam.com/video/u-b8w9ea1kk/v-deo.html

  • @TeslaZx28
    @TeslaZx28 6 місяців тому +1

    Shane thank you for this video, May I ask, I want to use a toggle button in Power Apps to upload an attachment to an Attachments element before sending an email, so I don't have to upload it every time. How can I do this?

    • @ShanesCows
      @ShanesCows  6 місяців тому +2

      Sorry, I am not following. Can you try explaining again?

    • @TeslaZx28
      @TeslaZx28 6 місяців тому

      @@ShanesCows sorry shane for my bad English, "I have a predefined email directly in PA that sometimes needs to include a PDF file 'Doc1'. I want to have a toggle next to it that attaches the file when pressed, so the end user doesn't have to upload the file each time."

  • @devisettychandu9880
    @devisettychandu9880 2 місяці тому

    Hi Raza Dorrani, I want the document library app that you showed in the last video ending. Is there any way to get that app, or do you have a link to share with me? It would be helpful to me.

  • @NKBobcat
    @NKBobcat 6 місяців тому +1

    I developed an app that needs access to upload files to a SharePoint document library, in a folder with the ID of the form as the folder name. I created the record and then navigate to a popup like screen with a button that kicks off a flow to create the folder. I used to create the folder on the creation of the form record, but the customer didn't want to have to reopen the form to upload files. I will watch this and hopefully just navigate them to an upload screen post form creation. Until now, I had a hard time uploading to a folder using the form ID as the name.

    • @ShanesCows
      @ShanesCows  6 місяців тому +2

      Hopefully this gets you everything you need. 😎

    • @NKBobcat
      @NKBobcat 6 місяців тому

      @ShanesCows It does. I am very happy. Thanks, Shane!

  • @Y0urN3m3sis
    @Y0urN3m3sis 6 місяців тому +1

    Is there a way to get internal file metadata of uploaded files? The use case I’m looking for is for PDF files to get internal file metadata to understand if the file was modified after creation

    • @ShanesCows
      @ShanesCows  6 місяців тому

      Maybe, but I have never done it or tried, so I don't know.

  • @usamapowerplatform007
    @usamapowerplatform007 6 місяців тому

    Is there any way we can get excel sheet in power automate for comparing the headers value for two different sheets without being formatted as table?

  • @LaurenBolin
    @LaurenBolin 6 місяців тому +1

    Will this also work with multiple -file uploads? Excellent video.

    • @ShanesCows
      @ShanesCows  6 місяців тому

      Yes it will. I am pretty sure I cover multi in this video ua-cam.com/video/cjcDH7_v6cE/v-deo.html

    • @LaurenBolin
      @LaurenBolin 6 місяців тому

      @@ShanesCows Yes, I have watched that video as well. I am just having trouble translating that code to a button control like the other video.

    • @radhikaseetharaman1772
      @radhikaseetharaman1772 6 місяців тому

      Hi @LaurenBolin do you have solution for multiple file uploads??

    • @LaurenBolin
      @LaurenBolin 6 місяців тому

      @@radhikaseetharaman1772 if I under stand what your asking yes. This is the code I have in my on select button that I would like for it to activate on. I’m and getting errors on Last(FILE).Value & Last(FILE).Name & Reset(Self)
      ForAll(Attachmen_1_DatacardValue_4.Attachments As FILE,
      CARAttachmentFlow.Run(
      inpFN.Text,
      InpPN.Text,
      {
      file:{
      contentBytes:Last(FILE).Value,
      name: Last(FILE).Name
      }
      }
      ));
      Reset(Self);

    • @wendymeyer1250
      @wendymeyer1250 5 місяців тому

      @@radhikaseetharaman1772 Remove the word "Last" and the brackets around "FILE", so that part of your formula will read like this: contentBytes:FILE.Value, name:FILE.Name

  • @alexw190
    @alexw190 18 днів тому +1

    Is it possible to add text to a file name before the file extension? For example, the file name is "My File.txt" and the uploaded file should "My File 123.txt". I tried to do a concatenate instead of substitute to add the required text to the end of the file name, but this adds the text after the extension... My File.txt123

    • @ShanesCows
      @ShanesCows  15 днів тому +1

      Yes, would be a tad tricky though. If your file will ever only have one . then you could substitute(filename, ".", "123.") something like that. Or if you know your extention will always be .txt you could do similar.

    • @alexw190
      @alexw190 15 днів тому +1

      @@ShanesCows Thank you for giving me a much easier formula. If you think that's tricky, just wait until you see what I came up with. I kept kept trying to figure it out after I asked my question and I got it to work with concatenate and split. This is my super tricky formula: Concatenate(First(Split(File.Name, ".")).Value & "-" & Text(Now(),"hhmmss") & "." & Last(Split(File.Name, ".")).Value)

    • @chewyyoung
      @chewyyoung 14 днів тому

      @@alexw190 Working is better than not working. 🤩🤩

    • @alexw190
      @alexw190 12 днів тому

      @@ShanesCows Your comment about only one "." in the file name has been bugging me. Most of the users in my organization do not put periods in a file name, but there is always that one person that will mess it up. I added a couple things to prevent a file from having more than one period.
      I added this formula to a label's text property that displays a message if an attachment in the attachments control has too many periods:
      If(!IsEmpty(Attachment_Conrol_1.Attachments),
      With({wAttachmentCheck:
      ForAll(
      Attachment_Conrol_1.Attachments As File,
      If(CountIf(Split(File.Name,""), Value = ".") > 1, "Error", "Valid"))
      },
      If("Error" in wAttachmentCheck, "Periods in file name not allowed", Blank())
      ),Blank())
      On the save button I added this to disable it if the file name has too many periods:
      With({wAttachmentCheck:
      ForAll(
      Attachment_Conrol_1.Attachments As File,
      If(CountIf(Split(File.Name, ""), Value = ".") > 1, "Error", "Valid"))
      },
      If("Error" in wAttachmentCheck), DisplayMode.Disabled, DisplayMode.Edit))
      I am assuming there may be a much easier way to do this, but this seems to be working so far.

  • @AMindGame
    @AMindGame 6 місяців тому +1

    Is there a way to make the file automatically save to my split when a user add a file as file attachement, where they won't have to click Save/Submit?

    • @ShanesCows
      @ShanesCows  6 місяців тому

      Yes, I show it in this video ua-cam.com/video/cjcDH7_v6cE/v-deo.html
      The key is you put the code you ahve in the Save button in the OnFileAdd property of the attachment control

  • @pabeader1941
    @pabeader1941 6 місяців тому +1

    Could you do a video showing how to do this using OneDrive for Business storage? I'm trying to duplicate the same thing that the Site Inspection template app does. I've been trying to understand this for about 2 weeks and I just can't figure out how it's doing it. The app uses a folder in OneDrive to hold the pictures and an Excel file to store the path to the pictures. This is my white whale. As far as I can tell, it does not use Power Automate or a Flow.

    • @ShanesCows
      @ShanesCows  6 місяців тому

      Excel has an image column type. If you set that up in your Excel then Power Apps understands it.

    • @pabeader1941
      @pabeader1941 6 місяців тому

      @@ShanesCows That's useful info but I'm not sure how it applies to my question. Are you thinking that the image is being stored in the excel file?? Thanks for the quick reply!!!!

    • @pabeader1941
      @pabeader1941 6 місяців тому

      @@ShanesCows I just dug through a download of the app and found that they are using api calls to do the onedriveforbuisness calls. Cheaters!!!

  • @THEDTSMAN
    @THEDTSMAN 6 місяців тому

    :( I so wanted this to include some clever stuff for creating folders in an on premise environment :(
    aka file system "create folder"

    • @ShanesCows
      @ShanesCows  6 місяців тому

      Does creating folders on-prem not work the same way as online? I have never had to work with on-prem SP and flow.

    • @THEDTSMAN
      @THEDTSMAN 6 місяців тому

      @@ShanesCows Theres no specific file system function for "Create Folder" when writing to an on-prem network via the gateway. Kinda annoying. I did some digging around and cannot see a work around at all. The path is the final destination so you cant even tag a folder into the path. C:\My Folder\FolderName\FolderPath

  • @MachineMirth
    @MachineMirth 6 місяців тому +1

    Interacting with files desperately needs a revamp. Using power automate to upload files is not ideal. Once a file is uploaded, we should have a way to rename them within the power app. We have a solution where users need to change the date embedded in the file name, but we want to keep the file uploaded date to stay the same. There are so many features lacking. Licensing also really needs to be a lot easier. As much as this is all good, we would be satiated by having more robust features when it comes to files. Thanks for sharing this info, it’s great but I can’t wait to see Microsoft make some really useful changes.

    • @ShanesCows
      @ShanesCows  6 місяців тому

      Making uploads easier, I think we would allow vote for that feature. 🙂

    • @jray1429
      @jray1429 6 місяців тому

      @MachineMirth - FYI: You don’t need to use a flow to upload to SharePoint docs library. You may have known that already. This is just another way of doing it, which looks pretty nice. Thanks Shane!