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 Automate / Forms Checkboxes to Ad...
Power Automate
Unanswered

Forms Checkboxes to Adaptive Card textbox

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

i got the post a adaptive card with response object.

now i got an error when input a multiple choice checkbox from forms into the textbox from the adaptive card

 

 

{
"type": "TextBlock",
"text": "@{replace(replace(body('Antwortdetails_abrufen')?['r114ffb972f5041fcabeba2ed1f21fed0'], '"]', ' '), '["', ' ')}",
"wrap": true,
"spacing": "Small"
},

 

 

Error:

BadRequest. Fehler bei Anforderung. Fehlercode: "InvalidJsonInBotAdaptiveCard". Fehlermeldung: "Microsoft.Azure.ProcessSimple.Data.Entities.Exceptions.ProcessSimpleDataException: Die angegebene Anforderung für eine adaptive Teams-Flowbotkarte fehlt oder ist ungültig. Nachverfolgungs-ID: {0} ---> Newtonsoft.Json.JsonReaderException: Invalid character after parsing property name. Expected ':' but got: ,. Path 'body[2].text', line 49, position 55. at Newtonsoft.Json.JsonTextReader.ParseProperty() at Newtonsoft.Json.Linq.JContainer.ReadContentFrom(JsonReader r, JsonLoadSettings settings) at Newtonsoft.Json.Linq.JContainer.ReadTokenFrom(JsonReader reader, JsonLoadSettings options) at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings) at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings) at Microsoft.Azure.ProcessSimple.Data.Components.AdaptiveCards.AdaptiveCardBuilder.DeserializeAdaptiveCard(String serializedAdaptiveCard, RequestIdentity requestor, CultureInfo cultureInfo, BotAdaptiveCardAtMentions atMentions) --- End of inner exception stack trace --- at Microsoft.Azure.ProcessSimple.Data.Components.AdaptiveCards.AdaptiveCardBuilder.DeserializeAdaptiveCard(String serializedAdaptiveCard, RequestIdentity requestor, CultureInfo cultureInfo, BotAdaptiveCardAtMentions atMentions) at Microsoft.Azure.ProcessSimple.Web.Common.Validation.BotAdaptiveCard(String card, RequestIdentity senderRequestIdentity)".
 
Whats the best practise for inputing a list of choices from forms to  a adaptive card?
Categories:
  • JonMil Profile Picture
    15 on at

    So far I haven't had much luck in finding an elegant solution other than this:

    1. Initialize variable:
      1. JonMil_0-1659551328056.png

         

      2. Set Variable:
        1. JonMil_1-1659551382829.png

           

        2.  The value should be a function like this: replace(<your dynamic field>], '"', '')
      3. The above removes the quotations.
        1. So ["dog","cat"] becomes [dog,cat]
        2. Do the same for the [ and the ] if you wish.

    Each item will come over as a format like ["dog","cat","owl"] so just trying to remove [" and "] would leave dog","cat","owl -- The quotes would still be there.

     

    If you've found a better way at this point, please let me know. Quotation marks are the bane of adaptive cards!

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard