cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nishchayg7
New Member

Power apps - blob storage - create block blob

Hi, I am new to power apps,

I want to take 4 inputs, 3 texts, and 1 date. I want to make a JSON object of these and save it into blob storage.

I have added a blob storage connector. I have read the documentation and azure blob storage, createblockblob expects 3-4 arguments, 1st- folder name, 2nd file name, 3rd content, 4th content type.

 

I want to name my json file name as selected date(string)

please help. I have added the screenshot of my formula in the post

5 REPLIES 5
yashag2255
Dual Super User II
Dual Super User II

Hey @nishchayg7 

 

Can you try to update your expression as:
 
AzureBlobStorage.CreateBlockBlob("testcontainer",Text(DatePicker1.SelectedDate,"[$-en-US]mm-dd-yyyy"),JSON({Name:TextInput1.Text,MachineName:TextInput2.Text,DPM:TextInput3.Text}),{'Content-Type':"application/json"})
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

@yashag2255 

Hi Yash,

 

Thanks for your help.

 

I am using this formula :

AzureBlobStorage.CreateBlockBlob("powerappsblob",Concatenate(Text(DatePicker1.SelectedDate,"[$-en-US]mm-dd-yyyy"),".json"),JSON({Name:TextInput1.Text, Name2 : TextInput7.Text , Name3 : TextInput8.Text}),{'Content-Type':"application/json"})

 

with this, i am able to save the file as selectedDate.Json but the file is empty and there is no data coming inside it. What might be the issue?

I'm having the same problem.  The blobs are always empty.  Did you find a resolution to this?

Same behaviour on my side. Just want to store some text in a BLOB file. File is created but empty (0 KB).

I'm using the following command: 

CreateBlockBlob(glryBlobFolders.Selected.Path, txtBlobFileName.Text,JSON(txtBlobFileContent.Text), {'Content-Type':"application/json"})

Example for txtBlobFileContent =

{FieldA:'ABC',FieldB:'XYZ'}

 Any hints? Or is this a known issue?

Thanks!

DilipP
Frequent Visitor

Same issue here. I am very surprised why microsoft guys are not responding to this ticket

AzureBlobStorage.CreateBlockBlob(
"myblobfolder",
"myjsonfile.json",
{'Name' : 'Dilip'},
{'Content-Type': "application/json"}
);

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,399)