
Announcements
Hello, I am using the create file in sharepoint action with the premium version but I get the error that argument 'body' must be '' binary what I created with the convert file to binary data action, can you help me by explaining how to correct?, thank you.
Hi @RoberthCB ,
You have enabled Power Fx while Creating a flow. Power Fx is still in Preview mode so we dont recommend it to use in Production. So please disable the Power Fx as shown in below image and Create a new flow.
Please find the solution.
Code: Please copy the below code to your new flow and make necesarry change.
File.ConvertToBinary File: $'''C:\\Users\\OneDrive\\Desktop\\Power Automate Desktop\\pdfExtraction.txt''' BinaryData=> BinaryData
@@dataset: 'FMT Dome Updates & GAP Analysis - https://sharepoint.com/sites/UpdatesGAPAnalysis'
@@folderPath: '/Shared Documents/General/04_Vendor_Onboard'
@@connectionDisplayName: 'Cr442c5_shared_sharepointonline_47bd9da2'
External.InvokeCloudConnector Connection: '57ae31a2-b3e0-4dab-867b-975b54df1cb8' ConnectorId: '/providers/Microsoft.PowerApps/apis/shared_sharepointonline' OperationId: 'CreateFile' @dataset: $'''https://sharepoint.com/sites/UpdatesGAPAnalysis''' @folderPath: $'''/Shared Documents/General/04_Vendor_Onboard''' @name: $'''Vishnu.txt''' @body: BinaryData @CreateFileResponse=> CreateFileResponse
# [ControlRepository][PowerAutomateDesktop]
{
"ControlRepositorySymbols": [],
"ImageRepositorySymbol": {
"Repository": "{\r\n \"Folders\": [],\r\n \"Images\": [],\r\n \"Version\": 1\r\n}",
"ImportMetadata": {},
"Name": "imgrepo"
},
"ConnectionReferences": [
{
"ConnectorId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
"DisplayName": "Cr442c5_shared_sharepointonline_47bd9da2",
"InternalId": "57ae31a2-b3e0-4dab-867b-975b54df1cb8",
"IsDisabled": false,
"LogicalName": "Cr442c5_shared_sharepointonline_47bd9da211394c69b6c8f2b74e435cf8",
"IsEmbedded": false,
"ConnectionName": "shared-sharepointonl-b6284dcf-7baa-41f9-bc0d-66e5eaea02af",
"ConnectionDisplayName": "Varikutivishnuvardha@acme.com"
}
]
}
(Note:- if you got your solution you can mark as solution and gives kudos)
Thanks & Regards
Vishnu Reddy