Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
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:
  • MattJimison Profile Picture
    577 Most Valuable Professional on at
    Re: Getting the data value from the Submit button in an adaptive card

    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.

  • MattJimison Profile Picture
    577 Most Valuable Professional on at
    Re: Getting the data value from the Submit button in an adaptive card

    @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

  • HenryJammes Profile Picture
    on at
    Re: Getting the data value from the Submit button in an adaptive card

    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

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at
    Re: Getting the data value from the Submit button in an adaptive card

    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
    on at
    Re: Getting the data value from the Submit button in an adaptive card

    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

  • MuhammadUzair00 Profile Picture
    5 on at
    Re: Getting the data value from the Submit button in an adaptive card

    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"
     }
    
     ]
     
     }
     ]
     }

     

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 76

#2
Pablo Roldan Profile Picture

Pablo Roldan 61

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard