Announcements
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:
Bot Framework Composer Dialog
I also added Dialog Interface Outputs as suggested in a similar answer
This is how it looks in PVA (I initialized a random variable as suggested by another user)
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
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.
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.
Thank you for your clarification.
Hi @Renad I used sample code you provided and built this. Let me know if this helps.
Just small changes to:
set prompt configuration to 1:
Dialog Interface:
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())} ]
Hello there, I altered the suggested fields however it still doesn't work.
I also changed the ids in the card payload as suggested.
hi @Renad
In the Set properties it is
=turn.activity.value.TryDate
=turn.activity.value.TryTime
If you change the version to 1.2 it might work.
Cheers
Hello there, I changed it to turn.activity.value.TryDate but it still doesn't work
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 370
Romain The Low-Code... 184 Super User 2026 Season 1
chiaraalina 57 Super User 2026 Season 1