PowerApps Attachments - Saved to Azure Blob Storage with SharePoint and SQL

Поделиться
HTML-код
  • Опубликовано: 22 янв 2025

Комментарии • 105

  • @jonica5566
    @jonica5566 3 года назад +2

    I often watch tutorial videos at 1.5x or 2.0x speed but not this one. Helpful, to the point and with an engaging presentation. Thanks!

    • @ShanesCows
      @ShanesCows  3 года назад +1

      Very kind of you Jonica. 🙏

  • @UB-qc8yk
    @UB-qc8yk 5 лет назад +1

    Great Video, very timely. I like the way you put together all the pieces, with great explanations along the way.

  • @ahmedtoaima8002
    @ahmedtoaima8002 3 года назад

    Hi Shane.
    anyone knows why Azurefield 24:29
    can't be saved on my SQL server , it's just came as NULL value, and when i try to use Azurefield variable like Shane did
    31:34 to delete the file from Azure storage its not working

  • @shyamksukumaran
    @shyamksukumaran 4 года назад +3

    Excellent Shane! Again I am saying you are a life saver! Thank you.

  • @terrisepulveda627
    @terrisepulveda627 5 лет назад +2

    Love the Dang Cameo! Thanks again Shane......Always A1 +

  • @giampaolocarli4728
    @giampaolocarli4728 2 года назад

    Hello Shane But id Ive a PDF File to store on SQL VarBinary colums on a Table How can do this ?
    ?

  • @leobrsp
    @leobrsp 5 лет назад +1

    Hi, Shane! I have been trying to make this code for a sharepoint database (list), unfortunately I just can't go on. What should I do? Tks

  • @avongonzales4736
    @avongonzales4736 3 года назад

    Hi Shane , During the Patch for OnSucess, When I checked the Value of AzureFileID: Value(FID) for SQL Server Table "ReceiptsAgain" Table the Value is Not an Integer, The FID I Get looks Like a Varchar for "JTJmYWt0Z2NvbnRyJTJmVmF4LUNhcmQtMi5KUEc=" , The Column Data Type "AzureFileID" is an INT ,

  • @nandakumarpa268
    @nandakumarpa268 3 года назад

    Hi Shane .. I am working on powerapps custom page which allows the user to add and delete images to azure blob.But I am not able to find add picture contol as an input option to add files.Is there any alternative way to add files similar to add picture control.

  • @josephkasumba1266
    @josephkasumba1266 4 года назад +1

    Hi Sean, is there a way to get files (of different types) from on premise shared folders? I thought File system can help, but it looks like nope!

    • @ShanesCows
      @ShanesCows  3 года назад

      Try this ruclips.net/video/Pa-pYEkLH-U/видео.html

  • @uiterlex
    @uiterlex 5 лет назад +1

    Thanks Shane, nice video with AzureBlobStorage+AzureSQL+PowerApps. And no Flow needed, but just direct load and storage. And super affordable for business use. Still like to see an example of showing tiny image versions (loads) in the gallery for speed reasons with large galleries. Gr. Lex

    • @ShanesCows
      @ShanesCows  5 лет назад

      Yeah. We have talked about it. To do that we would need to use Azure cognitive services to make the thumbnails.

    • @uiterlex
      @uiterlex 5 лет назад

      @@ShanesCows But is this fast enough for lots of images? Or schould we produce a thumbnail at storage time, by a small C# program?

    • @ruifernandes2021
      @ruifernandes2021 5 лет назад

      Hello @@uiterlex has Shane said you can use the Azure cognitive services to create the Thumbnail, and you can do this at storage time without the need to create a C# program. you might need to create a web app in azure that calls the cognitive services and that you store the thumbnail to azure.
      Have a look at this post:
      powerapps.microsoft.com/en-us/blog/cognitive-services-with-powerapps-using-custom-connectors/

    • @uiterlex
      @uiterlex 5 лет назад

      @@ruifernandes2021 Thanks Ruis for your reply. I will need time to figure this out. Hope to find a simple way to show many images in a fast way depending on different prefixed sizes.

  • @hughvelez4565
    @hughvelez4565 4 года назад +1

    hi Shane. I have a question. Is it possible to have two attachment controls in the same PowerApps?

    • @ShanesCows
      @ShanesCows  4 года назад

      Yes. Each control will have different names but you can have as many as you want.

  • @raphaelbonillo2192
    @raphaelbonillo2192 3 года назад +1

    Is possible to upload two images in diffrente columns in Lists or Doc Libraries?

    • @ShanesCows
      @ShanesCows  3 года назад

      Not that I have ever done.

  • @DataSpinners
    @DataSpinners 5 лет назад +1

    Hi Shane - are the settings for you files on azure blob storage 'Global Share' so that the path works? i.e. could anyone see these files?

    • @ShanesCows
      @ShanesCows  5 лет назад +1

      Hey Rory. Yes, on this example they are. I have done it other ways, usually with the key. The url being useable makes life easier for emails and PBI.

    • @grahamross4264
      @grahamross4264 5 лет назад

      I created a Shared-Access-Signature in the Azure Portal in the storage account section. I then added this code to the FL generation of the media button which enables access without changing the permission to 'public'. Whilst not ideal, it does give you more control to set an expiry time for access. The downside is having to regenerate the SAS, update the app and then run a script in SQL to correct the FL field.

    • @DataSpinners
      @DataSpinners 5 лет назад

      @@grahamross4264 you're officially brilliant. Not sure if I fully understood, but well done!

  • @eugeniagher7297
    @eugeniagher7297 4 года назад +1

    Hi Shane!I want to do this flow to upload de image JPG to a sharepoint list. For the moment y does not save it, ¿this flow is suposed to work? In what type of column I may save this file?

    • @ShanesCows
      @ShanesCows  4 года назад

      Try this video ruclips.net/video/3QaiM8SeWfM/видео.html

  • @KaineVarley
    @KaineVarley 4 года назад +1

    Hi Shane, it's a shame that the blob storage Url has to be hard-coded. Is there a way of getting this from the connector itself rather? I have multiple environments (dev/test/prod), each with its own storage account (mystoragedev/mystoragetest/mystorageprod), so it would be great to be able to get the base url on the fly.

    • @ShanesCows
      @ShanesCows  4 года назад

      Not that I know of. :( Maybe set the URL in a variable during App OnStart so then you can just update the URL in one place.

    • @KaineVarley
      @KaineVarley 4 года назад

      Hi @@ShanesCows , I found a way of creating the link on the fly. Here's the code to do it in the OnSelect:
      Launch(AzureBlobStorage.CreateShareLinkByPath(BlobPath).WebUrl);
      Where BlobPath is the path property in the BlobMetadata that you get from your upload. (docs.microsoft.com/en-us/connectors/azureblob/#blobmetadata).

  • @imran78k
    @imran78k 5 лет назад +1

    Is it possible to take photos from mobile device and add watermark to image like latitude and longitude

    • @ShanesCows
      @ShanesCows  4 года назад +1

      Probably but I have never done it. Sorry

  • @blackmagic10000
    @blackmagic10000 5 лет назад +1

    My code is as follows:
    Set(varAzureFile, AzureBlobStorage.CreateFile("receiptimages", AddMediaButton1.FileName, AddMediaButton1.Media));Collect(collectReceipts, {FN: AddMediaButton1.FileName, FL: "powerappsexpenses.blob.core.windows.net" & varAzureFile.Path, FID: varAzureFile.Id})
    However, I am still getting the XML error upon clicking on my files. Why would this be?

    • @ShanesCows
      @ShanesCows  5 лет назад

      That looks correct. 😑 If you use Azure Storage explorer can you see the file?

    • @blackmagic10000
      @blackmagic10000 5 лет назад

      @@ShanesCows Yes I can see the files and double-click to open them from within the GUI. However, in Powerapps I am getting that error you talked about despite my URL being perfectly correct. Any thoughts? It is odd to me that the file is uploaded correctly, but when trying to view it without having public access on I get the error.

  • @stgiesbrecht
    @stgiesbrecht 5 лет назад +1

    Does this have the 10MB file limit that is currently on attachments when you use SharePoint Online as the repository?

    • @ShanesCows
      @ShanesCows  5 лет назад

      Nope. Not sure what the limit is but I have never seen one.

    • @dennisblotenburg7399
      @dennisblotenburg7399 5 лет назад

      Hi @@ShanesCows , I think there is still a 10MB limit. I just try it with a 110MB zip file and that's not working. Microsoft has announced that they will increase the limit to 100MB but that's not enough in some situations. (source: powerusers.microsoft.com/t5/PowerApps-Ideas/PowerApps-Attachments-to-SharePoint-lists-size-limit/idi-p/108672) If you have any work around for uploading big files by PowerApps, I'm interessed in that work around.

  • @DanielFlores-cn1lc
    @DanielFlores-cn1lc 5 лет назад +1

    How do I change the file format? that indicates all the files

    • @ShanesCows
      @ShanesCows  4 года назад

      When you attach the file Azure Blob usually knows. I guess I don’t know what you are struggling with.

  • @js-ict2855
    @js-ict2855 5 лет назад +3

    Really love these videos. Is there going to be a video about SaveData() & LoadData() for offline use of your apps. Or is there already one and did I miss it?

  • @Siddharthrockin
    @Siddharthrockin 5 лет назад +1

    Thanks a ton Shane! For a similar requirement, I added the functionality of adding multiple files to blob storage and storing the metadata in SQL table and the save works perfectly. Also, I can access files via storage explorer from respective folder. But, When I use Launch(FileUrl) it doesn't open the file. Is it the blob storage settings? I am not sure or is there a key / file ID I need to append to the string or What is the secure way of getting this done?

    • @ShanesCows
      @ShanesCows  5 лет назад

      Check AZure Blob security. I need to do a video on this. 😑

    • @Siddharthrockin
      @Siddharthrockin 5 лет назад +1

      @@ShanesCows Did you do a video master? Still not able to figure out these two puzzles and I need your wisdom Sensei _/\_ 1. How to display files from a specific folder in the blob (container/fol1/fol2) 2. When clicking on these files, how to open the file using the respective MS word app or MS Excel app using Launch?

  • @balujims8647
    @balujims8647 5 лет назад +1

    Hi Shane, I have a query on SharePoint. Is there anyway I can get the data from an email which I receive from a specific group to the SharePoint list.

    • @DataSpinners
      @DataSpinners 5 лет назад +2

      Hi Balu - I think that you need Flow to make that happen, but you may find it challenging extracting attachments etc.

    • @ShanesCows
      @ShanesCows  5 лет назад +1

      Yup. I have exactly this built for PowerApps911 contact emails.

    • @balujims8647
      @balujims8647 5 лет назад

      Shane Young thanks

    • @balujims8647
      @balujims8647 5 лет назад

      Rory Neary Thanks

  • @nehachandani8244
    @nehachandani8244 5 лет назад +1

    Hello Shane
    Can we create folder in Blob Storage to upload image using Powerapps?

    • @ShanesCows
      @ShanesCows  5 лет назад

      Yes. If the path you pass has a folder it will be created

  • @ruifernandes2021
    @ruifernandes2021 5 лет назад +2

    Hello Shane
    Just want to point that there is other way to delete files from the Azure Blob even if you didn't store the FileID in SQL.
    First of all congratulations on the videos, and Thank you they have been very helpful.
    Complete agree with you that for new developments the best practice should be storing the AzureFileID in the SQL.
    But in the cases of an App that is already in production where we were only storing the file link or File path and we need to add a delete capability or any other caase where we are not able to add the Azure File ID in SQL there is still a way to do it.
    This is done via a combination of the DeleteFile() Function and the GetFileMetadataByPath() Function, please see below:
    AzureBlobStorage_1.DeleteFile( AzureBlobStorage_1.GetFileMetadataByPath( "FilePath" ) .Id )
    Hope this is understandable and helpful.

    • @ShanesCows
      @ShanesCows  5 лет назад

      Awesome Rui. Thanks for the assist. 😻

  • @sofyan471
    @sofyan471 5 лет назад +1

    Hey,
    Can i read excel file and show it in power app from blob storage

  • @abhilashkumar6541
    @abhilashkumar6541 4 года назад +1

    Great video 👍
    Shane just wanted to know can we show pictures from SharePoint list in url form in power apps image ?
    Like item 1 url
    2 url
    3 url
    So can we show the this url in the image of powerapps

    • @ShanesCows
      @ShanesCows  4 года назад +1

      Instead of using a picture control use a label and it should show the full URL

  • @mappingman
    @mappingman Год назад +1

    Hi Shane. Is this model convertible to SP Libraries? We don't have access to Azure Blob Objects, or a lot of the Azure ecosystem for that matter. One of the downsides of working for an underfunded government organization LOL

    • @ShanesCows
      @ShanesCows  Год назад

      Mark use this ruclips.net/video/3QaiM8SeWfM/видео.html

  • @blackmagic10000
    @blackmagic10000 5 лет назад +1

    The only way I can get this to work is if I set my blob storage to public. Does anybody have any idea? And no my storage container parameter in the URL is NOT being duplicated like in the video.

    • @ShanesCows
      @ShanesCows  5 лет назад +2

      I need to make a video that talks about Azure Blob Storage security. Soon I hope.

    • @grahamross4264
      @grahamross4264 5 лет назад

      @@ShanesCows I look forward to hearing about this.
      As per my reply to Rory below, I created a Shared Access Signature, built this into the FileLink code to workaround which works without setting the access to global. However, you either have to set a really long expiry time for the SAS (not a great idea) or frequently create a new SAS, update the database and the PA code, which is high maintenance. Plus the only way to revoke an SAS is to rekey the storage account....

  • @kmuralikrishna1582
    @kmuralikrishna1582 4 года назад +1

    Really Thanks,
    Remove(Database, ThisItem) is not working for me, i just want to remove only attachment from the record

    • @ShanesCows
      @ShanesCows  4 года назад

      I haven't done that in a long time. Sorry, don't remember how it worked.

  • @priyamadi3464
    @priyamadi3464 4 года назад +1

    Hi Shane, your videos have helped me a lot in learning about this app. I have one question if I use the layout as the "Image, body, subtitle and title" then how to I add in different images because when I tried it only picks up the first image that I add in to the list. Please advise :)

    • @ShanesCows
      @ShanesCows  4 года назад

      That is how a gallery works. You need to be able to draw the images from a data source or with a function if you want them to be different.

  • @sanazp5347
    @sanazp5347 4 года назад +1

    Loved your video and it was really helpful as I am new to PowerApps. Can i write the FL in a text field in my SharePoint list, without the SQL piece?

  • @brindarajani7513
    @brindarajani7513 5 лет назад

    Hello Shane , This is an excellent video . I was wondering if there is any way to attach files for every expense item I add and not just adding attachments for the master item.So similar to the Line Item and Line Cost , can we initially set Line attachment to blank and then on the "on success" can we patch the attachment corresponding to every expense item to the list ?

    • @ShanesCows
      @ShanesCows  5 лет назад +1

      Yes. Just have to put the pieces together. I did It for a customer app.

  • @hokemspitter
    @hokemspitter 5 лет назад +3

    Hi. Great stuff. I followed your video and have succeeded in writing to SharePoint, Azure Blob Storage and to the Azure SQL DB I allocated. All is cool, but the FID seems to be off. I have it declared in the database as int, but the Azure value varAzureFile.Id seems to be some encrypted string like this: JTJmZXhwZW5zZXJlY2VpcHRzJTJmbGVmdC1wYW5lbC1tZWFzdXJlbWVudHMuanBn.
    Do I have an error in the PowerApp or is it that the SQL column should be a varchar and not an int.
    Thanks for the super videos!

    • @ShanesCows
      @ShanesCows  5 лет назад

      That is the Id of the Azure Blob not Sql table.

    • @hokemspitter
      @hokemspitter 5 лет назад

      @@ShanesCows Should these lines remove the picture from the collection and also Azure?
      Remove(collectReceipts,ThisItem); AzureBlobStorage.DeleteFile(varAzureFile.Id);
      I am seeing the images still in the Azure Blob Storage container after I click the trash icon to run those two statements.

    • @grahamross4264
      @grahamross4264 5 лет назад

      I had the same issue too. I changed the SQL field to varchar(250) not null, refreshed the data source in PA, then changed the 'submit' button to remove Value(FID) to FID. Seems to work for me.

  • @mavuripavan3243
    @mavuripavan3243 5 лет назад +1

    Hi, Shane... This video is very helpful. thank you.
    how can we do similar exercise using onedrive instead of Azure blobstorage?

    • @ShanesCows
      @ShanesCows  5 лет назад

      Try this PowerApps upload file to SharePoint document library ruclips.net/video/3QaiM8SeWfM/видео.html

  • @bloopersbehindthescene4855
    @bloopersbehindthescene4855 4 года назад +1

    Thanks for another amazing video Shane.
    Have you made the video on how to get the azure blob storage to work with private setting instead of public? if yes plz put a link on the reply.

    • @ShanesCows
      @ShanesCows  4 года назад

      I haven't. I should, we do it for customers but I just haven't gotten to that topic for a video. Sorry.

    • @spook097097
      @spook097097 4 года назад

      @@ShanesCows Hey Shane, any clues on how to do this? im stuck on this road block right now

    • @spook097097
      @spook097097 4 года назад

      Ended up using a PCF component to download the file in the browser github.com/rwilson504/PCFControls. no more SAS key required

  • @HienTran-mi6jp
    @HienTran-mi6jp 5 лет назад +1

    These are awesome videos. It already giving me ideas in how to implement a few things. Instead of using azureblogstorage, could it be done with onedrive storage?

    • @ShanesCows
      @ShanesCows  5 лет назад

      Writing files to OneDrive isn’t at easy.

  • @thanasispapadopoulos6291
    @thanasispapadopoulos6291 2 года назад

    Hey Shane, Amazing video , would it be possible instead of blob storage and SQL have the images saved in a SharePoint list ?

  • @biglilb0y
    @biglilb0y 5 лет назад +1

    Really helpful video, Hi Shane, how can I email all the expense details together with the attachment in just 1 email?

    • @ShanesCows
      @ShanesCows  5 лет назад

      Look for my video on Concat

  • @elierh442
    @elierh442 5 лет назад +1

    Hi Shane, great work. I love your videos. You're always explaining exactly the stuff I need for my work, I'm basically thought by you Lol. I'm actually stating out but I love it so far. I recently got stuck on a simple project where I need to send a pdf on an email but the receiver receives a corrupted file. Do you have any idea why is this happening or how it can be fixed? I haven't found any helpful information about it online. Thanks again!

    • @ShanesCows
      @ShanesCows  5 лет назад

      Powerapps is most likely not corrupting the pdf I’d your formula is correct. I would double check your code for attaching. Have you tried other files, like an image, to see if you can get it to work?

  • @juulspriet801
    @juulspriet801 5 лет назад +1

    hey, love your videos, they've helped me a lot but i've got some more problems. This is for my thesis for uni btw. I have a powerapps form to collect data, stored in a sharepointlist and now the goal is to create a calendarpoint in outlook to then make a new .pdf file, starting from a .dotx file. Could you help me with this?

    • @ShanesCows
      @ShanesCows  5 лет назад

      I would look at Flow to help you easily create a calendar entry.

  • @markdiamante2927
    @markdiamante2927 5 лет назад +1

    Great tutorial! Anyone has a solution on how to avoid overwriting existing filename in AzureBlobStorage?

    • @ShanesCows
      @ShanesCows  5 лет назад +1

      I don’t think I have a quick answer to this. When I fear the issue I have made all filenames were unique with a time stamp

    • @markdiamante2927
      @markdiamante2927 5 лет назад +1

      Thanks Shane! How about editing capability to filenames in AzureBlobStorage?

    • @ShanesCows
      @ShanesCows  5 лет назад

      I got nothing there either. 😑

  • @SandeepSingh-lg7bq
    @SandeepSingh-lg7bq 5 лет назад +1

    Hi Shane, Thanks for another wonderful video. I have a question, is it possible can we refresh Blob connection like other connections. i.e Referesh(AzureBlob)

    • @ShanesCows
      @ShanesCows  5 лет назад

      It should always be a live connection?

  • @anthonyabieba9416
    @anthonyabieba9416 5 лет назад +1

    Hello share nice video, thanks a lot.
    But please, can you help with a new video about the compose function, how do i subtract the value of a field that was added as part of the create an item list from the value of a field that is in the get item list and update the item in the get item using flow in the apply to each section,
    "@sub(item()?['Keyboard'], 1" This formula worked if I want to just subtract "1" from the child list, but how do I subtract a field from the create an item list that's the parent list.
    Please help!!!!

    • @ShanesCows
      @ShanesCows  5 лет назад

      Yikes. I haven’t done that before. Sorry.