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 / Copilot Studio / ParseJSON Function out...
Copilot Studio
Answered

ParseJSON Function output invalid type

(0) ShareShare
ReportReport
Posted on by 29

How is the ParseJSON Fx function supposed to work?

I'm getting a "variable is of invalid type" error (that variable has not been defined anywhere, the topic is just this action)

 

StephanPirson_0-1697952451985.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    HenryJammes Profile Picture
    Microsoft Employee on at

    Instead of ParseJSON (that’s documented here: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-parsejson) I would recommend using the "parse value" node, so that you can get a properly defined record or table variable as an output, that you can use in your downstream steps. 

    If you need to use ParseJSON, I show an example of how here, when the parse value option wasn’t available : https://powerusers.microsoft.com/t5/General/How-can-I-use-Dynamic-Multi-choices-in-the-PVA-chatbot/m-p/1928854/highlight/true#M4719 

     

  • StephanPirson Profile Picture
    29 on at

    Thanks Henry,

     

    The parse variable indeed works.

     

    Out of curiosity is the parseJSON function of any use?

  • HenryJammes Profile Picture
    Microsoft Employee on at

    We mostly "inherit" it from the Power Apps world where it’s very useful. In PVA it can be useful if you want to reduce the number of nodes and you don’t want to type the JSON output as a variable. You can directly manipulate it in a Power Fx formula. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 297

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 184 Super User 2026 Season 1

#3
Arild Aarnes Profile Picture

Arild Aarnes 51 Super User 2026 Season 1

Last 30 days Overall leaderboard