Power Pages - File upload - Create Flow Power Automate Create Flow Flow_UploadFile add step When a HTTP request is received Make sure Who can trigger the flow - Anyone Add Action Initialize variable File Name expression triggerMultipartBody(1)['$content'] Initialize variable File Name String expression base64ToString() select File Name base64ToString(variables('File Name')) Add Step SharePoint Create File Site - SPS1000Videos Folder Path - pick select Shared Documents File name - File Name String File Content base64toBinary(triggerMultipartBody(0)['$content']) Add Step REsponse Status Code - 400 Body - Bad Request Configure Run After Create File Check Failed Add Parallel Branch Add REsponse Status Code - 200 Body - Uploaded Configure Run After Create File Check Successful
Thank you sir🎉
Power Pages - File upload - Create Flow
Power Automate
Create Flow
Flow_UploadFile
add step
When a HTTP request is received
Make sure Who can trigger the flow - Anyone
Add Action
Initialize variable
File Name
expression
triggerMultipartBody(1)['$content']
Initialize variable
File Name String
expression
base64ToString()
select File Name
base64ToString(variables('File Name'))
Add Step
SharePoint
Create File
Site - SPS1000Videos
Folder Path - pick select Shared Documents
File name - File Name String
File Content
base64toBinary(triggerMultipartBody(0)['$content'])
Add Step REsponse
Status Code - 400
Body - Bad Request
Configure Run After
Create File
Check Failed
Add Parallel Branch
Add REsponse
Status Code - 200
Body - Uploaded
Configure Run After
Create File
Check Successful