web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power automate respond...
Power Apps
Answered

Power automate respond to a power app variable type issue!

(1) ShareShare
ReportReport
Posted on by 49
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!
Categories:
I have the same question (0)
  • SebS Profile Picture
    4,826 Super User 2026 Season 1 on at
    Did you try to go to Flows in your App and remove the flow than ad it again?  sometimes when you doing some changes or Save flow in PA they desynchronise showing errors.
  • FettlinTyke Profile Picture
    49 on at
    @SebS Yep, in the last section I explained I had removed the flow, and even cleared my cache and restarted my computer as just removing it didn't work. 
     
    Sorry, the formatting on my post went off but Microsoft prevent highlighting all text in mobile version so I can't update it all so it is clearer.
  • SebS Profile Picture
    4,826 Super User 2026 Season 1 on at
    Look like contractual error but wierd but  I do not know how your full code looks like and how You designed your power automate flow 

    it should have Respons Action

    Then you could do something like this to catch it 


    Set(varResponse, CreateNewDoc.Run(var1.Text, ...));
    Set(test1, Text(varResponse.fileId));
    Set(test2, Text(varResponse.fileLink));
    Set(test3, Text(varResponse.fileName));

    but you need to have output parameters and staff



     
  • Verified answer
    FettlinTyke Profile Picture
    49 on at
    Well colour me embarrased. I appear to have deleted the wrong bracket when moving some other code so my code was:
    Set(varResponse, CreateNewDoc.Run(
    "Text 1"
    etc.
    )
    <other code that should not be here>
    ); <<<<closed the original Set code block after the other code.
     
    Thanks for your help @SebS, confirming my code was the same as yours was what showed me the error.
  • Mahesh Birudu Profile Picture
    28 on at
    Refresh the Power Automate flow within the Power App and get the response data using varResponse.ResponseFieldName. Bind this value to a label’s Text property for testing purposes. Once validated, the variable can be used wherever required within the application.
  • SebS Profile Picture
    4,826 Super User 2026 Season 1 on at
    @FettlinTyke I'm glad It worked for you, and don't worry thinks like that happens to the best happy development. :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard