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 / Getting the data value...
Copilot Studio
Unanswered

Getting the data value from the Submit button in an adaptive card

(0) ShareShare
ReportReport
Posted on by 71

Hi,

 

I have an adaptive card that has a Submit button.  I want to make sure that the submit button is clicked, before moving onto the next stage by (and I'm open to ideas), setting a flag in the data section.

 

jdee111_0-1664294561567.png

 

 

I've tried to get the value in a Response using:

 

${turn.activity.value.email_submitButtonClicked}

${turn.activity.value.email_submitButtonClicked.data}

${turn.activity.value.data}

 

None seem to work... can anyone help?

 

 

 

 

Categories:
I have the same question (0)
  • MuhammadUzair00 Profile Picture
    5 on at

    I am facing the same issue, I am want to fetch values of items url from first object and text from second and third object. Can anyone help it out.

    {
     type: "Column",
     items: [
     {
     type: "Image",
     size: "Medium",
     url: (Topic.Image1)
     },
     {
     type: "TextBlock",
     size: "Small",
     text: (Topic.CategorySelected) & ": " & (Topic.Output),
     weight: "Bolder"
     },
     {
     type: "TextBlock",
     size: "Small",
     text: "$450",
     weight: "Bold"
     },
     {
     type: "ActionSet",
     actions: [
     {
     type: "Action.Submit",
     title: "Add To Cart",
     style: "positive"
     },
     {
     type: "Action.Submit",
     title: "Favorite",
     style: "positive"
     }
    
     ]
     
     }
     ]
     }

     

  • HenryJammes Profile Picture
    Microsoft Employee on at

    There's a new feature in PVA to easily capture submits from adaptive cards as variables.

    Have you looked at it?

    See: How to use Adpative Cards in PVA to ask questions. - YouTube

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @HenryJammes ,

     

    I watched the demo and I just would like to know how the new adaptive cards on PVA will work to send the data to an email address like is done nowadays with Power Automate.

     

    Cheers,


    Fernando Silva

  • HenryJammes Profile Picture
    Microsoft Employee on at

    Hi @fernandosilva,

     

    Once you capture the user email in an "Ask with adaptive card" node, it's saved as a variable in PVA, and you can send the content of that variable as an input to a Power Automate cloud flow, in a subsequent action step.

    Call a flow as an action - Power Virtual Agents | Microsoft Learn

     

    Henry

  • MattJimison Profile Picture
    579 Most Valuable Professional on at

    @jdee111 Based on the values you tried using, I'm assuming you're using Azure Bot Composer Framework.

     

    In that case, this is what you needed (assuming this may be a moot point since your post was from months ago):

     

    turn.activity.value.x

     

    You just specify the name of the value inside your data, essentially, so in your example, that would just be "x"

     


    Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.

    Cheers,
    Matt

  • MattJimison Profile Picture
    579 Most Valuable Professional on at

    Yes, 100% agreed with @HenryJammes - "Ask with adaptive card" is a much easier way to grab values from an adaptive card in the new Unified Canvas. In Azure Bot Composer Framework you had to use turn.activity.value.{YourProperty} but this is much easier. It also looks like turn.activity.value isn't available in Unified Canvas, so this looks like the only option 😼 and its quite convenient that it automatically recognizes the names of the values in your card.

     

    Once you have the values from your card inside variables you can do anything you'd like with them, including outputting in a message, sending to an Action, etc.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 531

#2
Vish WR Profile Picture

Vish WR 293

#3
Haque Profile Picture

Haque 208

Last 30 days Overall leaderboard