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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,022)