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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Dynamic value contains " and is causing an error in my json code (adaptive card).

(0) ShareShare
ReportReport
Posted on by

I am essentially calling up a MS Form field value.
This value can contain anything - including a double quote ".

The issue is that when you have this in your json
"text": "DYNAMIC VALUE",

The dynamic value that includes a " somewhere within it - causes the json to see that as the end of the expression - therefore you get an "unexpected character" error. 

I am under the impression I need to massage the dynamic MS Forms value prior to it getting to the adaptive card action - but I am not quite sure how.
Perhaps you can do it in the json code itself, but I am not sure what to even google to get the answers I need.

Thank you!

I have the same question (0)
  • abm abm Profile Picture
    32,600 Most Valuable Professional on at
    Re: Dynamic value contains " and is causing an error in my json code (adaptive card).

    Hi @Anonymous 

     

    In order to analyse your problem could you please post a screenshot of you flow, sample data and run history error details.

     

    Thanks

  • Verified answer
    Community Power Platform Member Profile Picture
    on at
    Re: Dynamic value contains " and is causing an error in my json code (adaptive card).

    Hi @abm 

    I actually figured it out - Power Automate actually will sanitize data for you if you put it through a specific action.
    Which I would tell you all about, but I am having an 'Authentication Failed' error with my O365 stuff.

  • abm abm Profile Picture
    32,600 Most Valuable Professional on at
    Re: Dynamic value contains " and is causing an error in my json code (adaptive card).

    Hi @Anonymous 

     

    Glad to hear that you fixed your issue. There is an outage for O365 and Microsoft support is fixing this now. I had similar issues for few minutes and its resolved now.

     

    Thanks

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard