I am trying to write my very first flow and keep it simple. I will iterate it over time to get exactly what I want but for now getting it working is the first step.
The flow is simple:
When a file is created in a folder --> Get File Content --> Send an Email
The idea is that it will send the file as an attachment to the people in the settings. (I actually want to send a link to the site but that went wrong too so I'm keeping it simple for now).
The error is in the Get File Content section - the flow is triggered fine:
Action 'Get_file_content' failed: The 'inputs.parameters' of workflow operation 'Get_file_content' of type 'OpenApiConnection' is not valid. Error details: The resolved string values for the following parameters are invalid, they may not be null or empty: 'id'
And here is the code:
{
"type": "OpenApiConnection",
"inputs": {
"parameters": {
"dataset": "https://<SharepointAddress>",
"id": "@triggerOutputs()?['body/ID']"
},
"host": {
"apiId": "/providers/Microsoft.PowerApps/apis/shared_sharepointonline",
"connection": "shared_sharepointonline",
"operationId": "GetFileContent"
}
},
"runAfter": {}
}
So what obvious thing am I missing?