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
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?
I have the same question (0)
  • JonMil Profile Picture
    15 on at
    Re: Forms Checkboxes to Adaptive Card textbox

    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

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 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard