web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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
    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
    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
    577 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
    577 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard