Hello,
I have created a form which sends various variables to a power automate flow, it creates a SharePoint file, and, using 'Respond to a power app or flow' it returns 3 text values, lets call them text1, text2, text3. The power automate flow works and looking at the outputs of the flow, the correct information is returned.
In power apps I call is using:
Set(varResponse, CreateNewDoc.Run(
var1.Text,
etc
)
I then want to set a variable to one of the outputs using Set(test1, varResponse.text1). This throws a warning: The '.' operator cannot be used on Boolean values.
When checking the power apps variables, varResponse (Boolean: Blank) so it believes I am returning nothing.
This was working fine but then suddenly broke during a test run when I was inputting values, nothing to do with changing any code.
I have tried various fixes suggested by Copilot (yeah, I know) but the latest was:
Deleting the power automate linked flow in power apps, commenting out all mentions of the variable, exiting both power apps/powerautomate, clearing my browser cache, then restarting the computer, updating the power apps flow link to reconnect my flow then just commenting in the Set(varResponse, CreateNewDoc.Run(...) and the variable varResponse automatically reappears as a Boolean:Blank again. When I tried to run the flow (to see if it needs to run to set the variables values) the raw outputs of the respond to a power app or flow is:
{
"statusCode": "200",
"schema": {
"type": "object",
"properties": {
"idn": {
"title": "text1",
"type": "string",
"x-ms-content-hint": "TEXT",
"x-ms-dynamically-added": true
},
"idlink": {
"title": "text2",
"type": "string",
"x-ms-content-hint": "TEXT",
"x-ms-dynamically-added": true
},
"filename": {
"title": "text3",
"type": "string",
"x-ms-content-hint": "TEXT",
"x-ms-dynamically-added": true
}
},
"additionalProperties": {}
},
"body": {
"text1": "Correct String",
"text2": "https://correct URL",
"text3": "File 1036.docx"
}
}
This is the same as a run when it was working as intended.
In power apps, varResponse is not Boolean: true. varResponse in my current code is only used in the Set(varResponse, CreateNewDoc.Run(...) and when I comment this out, the varResponse variable disappears from the global variable list which shows it is not being set anywhere else.
Has anyone got any suggestions? I have been wasting over 2 hours on this so far and it does not appear to make sense!