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 : bN89CV+0r8GlRCzgL3Dt/O
Copilot Studio - Calling Actions from Copilot S...
Unanswered

the quotation mark is replaced with left/right double quotation mark

Like (0) ShareShare
ReportReport
Posted on 18 Mar 2024 15:54:56 by 6

My issue is that my PVA returns the correct value of topics - sample value: 

{title: "Sharepoint", value: "Sharepoint"},{title: "Teams", value: "Teams"} - it is stored as string variable.

I would like to use it as a part of adaptive card (set in 'formula' mode): 

 choices: [                
       Topic.output
      ]

 

If the variable is displayed as message, the text is shown as {title: “Sharepoint”, value: “Sharepoint”},{title: “Teams”, value: “Teams”} - 

The quotation " mark (ascii 34) is replaced with left/right double quotation mark  - " !=“ or ” ;(

 

Any ideas how to solve it ?

I have the same question (0)
  • v-bofeng-msft Profile Picture
    on 21 Mar 2024 at 01:07:23
    Re: the quotation mark is replaced with left/right double quotation mark

    Hi @mazyd ,

     

    Please parse value form sample data.

    vbofengmsft_1-1710983214140.png

     

    Best Regards,

    Bof

     

  • mazyd Profile Picture
    6 on 20 Mar 2024 at 11:20:06
    Re: the quotation mark is replaced with left/right double quotation mark

    Hi @v-bofeng-msft 

    I added the option for parsing and received the error as follows:

    2024-03-20_12-17-35.png

     

     

  • mazyd Profile Picture
    6 on 20 Mar 2024 at 11:03:55
    Re: the quotation mark is replaced with left/right double quotation mark

    Hi @v-bofeng-msft ,

    I played with your solution, but the adaptive card is not shown:

    1. Set variable: 2024-03-20_11-49-53.png
    2. Add the variable to adaptive card: 2024-03-20_11-51-14.png 
      1. JSON: 
        {
          type: "AdaptiveCard",
          version: "1.5",
          body: [
            {
              type: "TextBlock",
              text: " Form title",
              size: "Large",
              wrap: true,
              weight: "Bolder",
              style: "heading"
            },
            {
              type: "Input.ChoiceSet",
              id: "TopicVal",
              label: "Please select: ",
              style: "filtered",
              isRequired: true,
              errorMessage: "This is a required input",
              placeholder: "Please choose",
              choices: Topic.Var2
            }
          ],
          actions: [
            {
              type: "Action.Submit",
              title: "Done"
            }
          ]
        }
    3. The bot does not display the card: 2024-03-20_11-57-27.png

     

     

    Any ideas ?

  • v-bofeng-msft Profile Picture
    on 20 Mar 2024 at 08:44:59
    Re: the quotation mark is replaced with left/right double quotation mark

    Hi @mazyd  ,

     

    I suggest that you format the data into a standard JSON string in the flow before proceeding with the next steps in PVA.

     

    Best Regards,

    Bof

  • mazyd Profile Picture
    6 on 20 Mar 2024 at 07:54:51
    Re: the quotation mark is replaced with left/right double quotation mark

    Hi @v-bofeng-msft ,

     

    thank you for response.

    I provide with more details - my bot uses the Power Automate flow to get the list of the topics.

    The output from flow looks as presented: 2024-03-20_8-47-20.png

    If I try to display data I lost " and I see: “value here” - it cannot be interpreted as json ;(

    It looks like some internal mechanism replace " to  “value here”  

     

  • v-bofeng-msft Profile Picture
    on 19 Mar 2024 at 02:40:12
    Re: the quotation mark is replaced with left/right double quotation mark

    Hi @mazyd ,

     

    I've made a test for your reference:

    vbofengmsft_0-1710815920117.png

    vbofengmsft_1-1710815975177.png

    {
     type: "AdaptiveCard",
     '$schema': "http://adaptivecards.io/schemas/adaptive-card.json",
     version: "1.2",
     body: [
     {
     type: "Input.ChoiceSet",
     choices: Topic.Var2,
     placeholder: "Placeholder text",
     id: "1"
     },
     {
     type: "ActionSet",
     actions: [
     {
     type: "Action.Submit",
     title: "Submit",
     id: "2"
     }
     ]
     }
     ]
    }

    Result:

    vbofengmsft_2-1710816003472.png

     

    Best Regards,
    Bof

     

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…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 514 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 233 Super User 2025 Season 2

#3
Bezanca Profile Picture

Bezanca 52

Last 30 days Overall leaderboard

Featured topics

Loading complete