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 / Power Automate / How do you get Input.T...
Power Automate
Unanswered

How do you get Input.Text values from an Action Set?

(0) ShareShare
ReportReport
Posted on by 457

I'm not seeing an output for values submitted within an Action Set.  In this example, I want the value for sport_2.  I can get the value for sport_1 of course 

@{body('POST_ADAPTIVE_CARD')?['data']?['sport_1']}

(this is my back up plan) but I want to use Action.ShowCard to have the edit function hidden. 

 

{
 "type": "AdaptiveCard",
 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
 "version": "1.3",
 "body": [
 {
 "type": "TextBlock",
 "text": "**SPORT:** @{triggerBody()['text']} ",
 "maxLines": 13,
 "spacing": "Small"
 },
 {
 "type": "Input.Text",
 "id": "sport_1",
 "value": "@{triggerBody()['text']}"
 }, {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.ShowCard",
 "title": "Edit Information ✏️",
 "card": {
 "type": "AdaptiveCard",
 "body": [
 {
 "type": "Input.Text",
 "id": "sport_2",
 "value": "@{triggerBody()['text']}"
 }
 ]
 }
 }
 ]
 },
 {
 "type": "ActionSet",
 "actions": [
 {
 "type": "Action.Submit",
 "title": "SUBMIT",
 "id": "submit",
 "associatedInputs": "auto"
 }
 ]
 }
 ]
}

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,183 Most Valuable Professional on at

    Hi @anthonys123,

     

    Which action are you using to sent the adaptive card? The Post adaptive card and wait for a response action?

     

    Below is an example of a flow which uses the waiting for response action.

     

    Edit: Apologies, I have misread. I see you are after the sport_2. My sample earlier was only retrieving the sport_1. It looks like the sport_2 is not part of the outputs.

     

  • anthonys123 Profile Picture
    457 on at

    Right. How do I retrieve "sport_2" in the output? 

  • Verified answer
    Expiscornovus Profile Picture
    33,183 Most Valuable Professional on at

    Hi @anthonys123,

     

    Looks like nested text.input controls are not shown.

     

    Have you tried the Action.ToggleVisibility and not nesting the text.input control?

     

    Try for example this:

    {
     "type": "AdaptiveCard",
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "version": "1.3",
     "body": [
     {
     "type": "TextBlock",
     "text": "**SPORT:** @{triggerBody()['text']} ",
     "maxLines": 13,
     "spacing": "Small"
     },
     {
     "type": "Input.Text",
     "id": "sport_1",
     "value": "@{triggerBody()['text']}"
     }, 
     {
     "type": "Input.Text",
     "id": "sport_2",
     "value": "@{triggerBody()['text']}",
     "isVisible": false
     },
     {
     "type": "ActionSet",
     "actions": [
     {
     "type": "Action.ToggleVisibility",
     "title": "Edit Information",
     "targetElements": ["sport_2"] 
     }
     ]
     },
     {
     "type": "ActionSet",
     "actions": [
     {
     "type": "Action.Submit",
     "title": "SUBMIT",
     "id": "submit",
     "associatedInputs": "auto"
     }
     ]
     }
     ]
    }

     

    With that json I see the sport_2 and I can retrieve it with:

    body('Post_adaptive_card_and_wait_for_a_response')?['data']['sport_2']

     

  • anthonys123 Profile Picture
    457 on at

    Yep. I think that should do it! I hadn't thought of toggle visibility (haven't used it before). Thanks! 

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard