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 to request user in...
Power Automate
Unanswered

How to request user input for power automate flow

(0) ShareShare
ReportReport
Posted on by 16

Hi Power Automate Team,


I've developed a flow activated by the MS Teams For a selected message action. Following activation, my goal is to ask for additional details from the user.

Screenshot 2024-03-22 at 15.07.21.png

 

I understand this is achievable, as demonstrated by the Create a new Trello card from a message flow.

Screenshot 2024-03-22 at 15.08.03.png


When attempting to construct a similar flow that includes requested fields, I encounter difficulties saving the flow due to these fields being mandatory.

As illustrated in the example below, I aim to prompt the user to enter the x-space-id, which is a dybamic list variable, in an MS Teams popup, similar to the Trello scenario.

Screenshot 2024-03-22 at 15.09.55.png


How can I achieve this?

Thank you.

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    @Rabzu 

    Click on the trigger and add an adaptive card.

    SudeepGhatakNZ_0-1711319929591.png

    How to Trigger a Power Automate Flow From Any Message In Teams (youtube.com)

     

     

  • Rabzu Profile Picture
    16 on at

    Hi, 

    No that does not help. Completly misread my question:


  • Archy Profile Picture
    83 on at

    I need more clarification, so you created the adaptive card and asked for the x-space-id in it. 
    what is the next step ? In the screen-shoot, it looks like u want to send the x-space-id to a graph groups and users.
    which action are u using?

    Archy_0-1711356125576.png

    and what do u have in the dropdown:

    Archy_1-1711356153461.png

    For me it looks like u need to pass the collected x-space-id. That should be available in the adaptive card.

    Archy_2-1711356403330.png

    This is my recreated adaptive card json with the required x-space-id

    {
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "type": "AdaptiveCard",
     "version": "1.3",
     "body": [
     {
     "type": "TextBlock",
     "text": "Please provide additional details",
     "weight": "Bolder",
     "size": "Medium"
     },
     {
     "type": "Input.Text",
     "id": "x-space-id",
     "placeholder": "Enter the X-Space ID",
     "isRequired": true,
     "errorMessage": "X-Space ID is required",
     "label": "Enter id"
     }
     ],
     "actions": [
     {
     "type": "Action.Submit",
     "title": "Submit"
     }
     ]
    }

     

    if I'm not correct please provide the end goal, because the Trello example may not have all the steps that u need to have to complete your goal.

  • Rabzu Profile Picture
    16 on at

    Your solution is missing the point! similar to trello x-space-id is a dynamic variable. As I understand you cannot have dynamic variables in adaptive cards.

  • Archy Profile Picture
    83 on at

    The 'id' property of the input field will be static, but the user will provide the dynamic value.

    If you collect an 'x-space-id' from an Adaptive Card, you can then use that input to set the value of a variable in your flow using the "Set variable" action or within expressions throughout your flow.

     

    While the variable names in the Adaptive Card schema are static, the values they hold can be dynamic and based on user input. This allows you to create flows that react to user-provided data in a dynamic way, even though the variable names themselves cannot be dynamically generated within the Adaptive Card.

  • Rabzu Profile Picture
    16 on at

    Sorry mate, that's no what I'm looking for. You solution misses the point of my question.

  • Rabzu Profile Picture
    16 on at

    b

  • Archy Profile Picture
    83 on at

    ❤️  np np. Tnx.

  • Rabzu Profile Picture
    16 on at

    @Archy 
    x-space-id is a dynamic list variable, in other words similar to Trello, a user chooses a possible x-space-id values from a list. If I follow your instructions then user will be asked to input the x-space-id manually instead.


    Also, if you look at the Trello template, they don't use adaptive cards like you suggest. https://powerautomate.microsoft.com/en-ca/templates/details/0e9e8e425a6c4f599af2f602ccb9916f/create-a-new-trello-card-from-a-message/


    Basically, I want user to choose from this list instead of inputing it manually

    Rabzu_0-1714209793434.png

     

  • Archy Profile Picture
    83 on at

    Hy,

    So, if i understand you want:

    Archy_0-1714464547023.png

    If that is the case that can be done only with hardcoding in the adaptive card

    try this sources:
    https://stackoverflow.com/questions/78202333/powerautomate-adaptive-cards-input-choice-set-from-dynamic-list-array

    https://www.penthara.com/creating-interactive-adaptive-cards-in-ms-teams-with-dynamic-data-from-sharepoint-lists/

    https://dev.to/mcombp/passing-a-choices-list-from-power-apps-to-an-adaptive-card-2nga

     

    i didn't have a case that requires that approach. Hope it helps. 

     

     

     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard