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 / Attempt to obtain outp...
Copilot Studio
Answered

Attempt to obtain output from an Adaptive Card in PVA

(0) ShareShare
ReportReport
Posted on by 69

Hello there, I'm not well-versed in power apps in general so pardon my inexperience.

Now I've been trying to create a datetime picker in PVA and used the following tutorials as a rough guideline:

https://learn.microsoft.com/en-us/power-virtual-agents/advanced-bot-framework-composer-example2

https://learn.microsoft.com/en-us/power-virtual-agents/advanced-bot-framework-composer-example1

(Additionally I went through some similar questions on this forum but it still wouldn't even get published on bot composer)

This is my setup:

Adaptive Card payload + bot response configurations:

Renad_0-1683031621220.png

 

 

Bot Framework Composer Dialog 

Renad_0-1683030939083.png

 

Renad_1-1683030955714.png

 

I also added Dialog Interface Outputs as suggested in a similar answer 

Renad_2-1683031023365.png

 

This is how it looks in PVA (I initialized a random variable as suggested by another user)

Renad_3-1683031067879.png

 

 

Categories:
I have the same question (0)
  • HenryJammes Profile Picture
    Microsoft Employee on at

    Adaptive cards with support for form submits will come very soon to the unified authoring canvas of PVA, making the experience immensely easier.

    In the production version of PVA, you can refer to this documentation: Use Bot Framework Composer to display a form in chatbots - Power Virtual Agents | Microsoft Learn

  • Renad Profile Picture
    69 on at

    I'm not located in the US ergo I don't have access to preview features. Additionally, I need something suitable for production ASAP. Thank you. 

  • HenryJammes Profile Picture
    Microsoft Employee on at

    The unified authoring canvas is in public preview in all PVA public cloud regions (only the GPT-based features, namely Conversation Boosters and Copilot, are limited to US environments).

    The unified authoring canvas will be Generally Available (so production supported) in a matter of weeks now.

  • Renad Profile Picture
    69 on at

    Thank you for your clarification. 

  • nikviz Profile Picture
    242 on at

    Hi @Renad 

    I used sample code you provided and built this. Let me know if this helps.

    nikviz_0-1683045223935.png

     

    Just small changes to:

     

    nikviz_1-1683045287051.png

    set prompt configuration to 1:

    nikviz_3-1683045361286.png

     

     

    nikviz_2-1683045328664.png

     

    Dialog Interface:

     

    nikviz_4-1683045403601.png

     

    and in the code just changed the id:

     

    # adaptivecardjson_datetimepicker()
    - ```
    {
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "type": "AdaptiveCard",
     "version": "1.0",
     "body": [
     {
     "type": "Input.Date",
     "id": "TryDate",
     "placeholder": "Enter a date",
     "value": "2022-01-01"
     },
     {
     "type": "Input.Time",
     "id": "TryTime",
     "placeholder": "select time",
     "value": "HH:MM"
     }
     ],
     "actions": [
     {
     "type": "Action.Submit",
     "title": "OK"
     }
     ]
    }
    ```
    
    # AdaptiveCardDTP()
    [Activity
     Attachments = ${json(adaptivecardjson_datetimepicker())}
    ]

     

  • Renad Profile Picture
    69 on at

    Hello there, I altered the suggested fields however it still doesn't work.

    Renad_3-1683101307434.png

     

    Renad_1-1683100413990.png

    Renad_2-1683100597141.png


    I also changed the ids in the card payload as suggested.

  • nikviz Profile Picture
    242 on at

    hi @Renad 

     

    In the Set properties it is

    =turn.activity.value.TryDate

    =turn.activity.value.TryTime

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    If you change the version to 1.2 it might work.

     

    Cheers

  • Renad Profile Picture
    69 on at

    Hello there, I changed it to turn.activity.value.TryDate but it still doesn't work

    Renad_0-1683105550754.png

    Renad_1-1683105583049.png

     

     

  • Verified answer
    nikviz Profile Picture
    242 on at

    you've to add the "=" as well.

    it is not assigning the value

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!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 370

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 184 Super User 2026 Season 1

#3
chiaraalina Profile Picture

chiaraalina 57 Super User 2026 Season 1

Last 30 days Overall leaderboard