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 / Error.(JSON parsing er...
Power Apps
Unanswered

Error.(JSON parsing error, expected 'string' but got 'object') - AzureVM.VirtualMachineGet

(0) ShareShare
ReportReport
Posted on by 3

I use the provided connector in power automate and in power app but I get the same issue, I cannot address the returned data in a dot notation.

 

the data comes back in a JSON looking string, I've done things like Set(variable, JSON(returnoutput)), I've tried ParseJSON as well, I just can't seem to get it where I can type in variable.name / id etc etc. 

I know this is simple problem but I can't seem to get it figured.  sorry I can't cut and paste the information here i.e. result of connector (cut/copy/paste is disabled in my environment)

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @adrianallan 

     

    Pls check the below sample.

     

    The power automate flow return the json object as string:

    ManishSolanki_0-1702806545239.png

     

    In app, on button click, I have used ParseJSON function to convert output parameter of flow in JSON object and store in a variable. After that you could easily access the property value by using dot notation.

    Set(output,ParseJSON(testjsonoutput.Run().output));
    Notify(output.Name)

     

    ManishSolanki_1-1702806722986.png

     

    It shows the value of property 'Name' when button is clicked:

    ManishSolanki_3-1702806855216.png

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • adrianallan Profile Picture
    3 on at

    Thank you, I did, what I thought was the same thing in two steps

    Set(vmInfo, GetVMInfo.Run());

    Set(jsonInfo, ParseJSON(vmInfo.output))

    But I was not getting the dot notation response just the string.  Thanks, I don't know why what I was doing didn't work but I'll say its my newbie problem.

  • FeierCiprian Profile Picture
    20 on at

    Set your response from Power Automate as STRING (using expressions)
    then in Power Apps you will receive the string of data and you can transform it and store data into collection with the help of this video.
    Send Array/JSON Response from Power Automate Flow to Power Apps 

    Hope it helps.

  • Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @adrianallan 

     

    Try this way. Collect the string return by flow in a variable and then apply function:

    Set(vmInfo, GetVMInfo.Run().output);
    Set(jsonInfo, ParseJSON(vmInfo))

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard