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 / Output Date Style is d...
Copilot Studio
Answered

Output Date Style is different from the Power Automate Input Style

(0) ShareShare
ReportReport
Posted on by Super User 2024 Season 1

Hi there, @HenryJammes

 

I created a copy of an existing chatbot that is running perfectly on the "Classic" type or mode, whatever, and I'm now trying to convert all the forms from the Bot Framework Composer to the new Adaptive Card option straight from the canvas.

 

In some forms we have date picker and when converting to the "new" adaptive card I had the following results:

 

In my adaptive card I had to change the style of the date to: 

"style": "date"
 
- Doing this the output fields will match with the json schema perfectly.
- The issue I found was to match the new json schema date style with the input on Power Automate.
Power Automate has the options to "Text", "Number" and "Boolean" options and when PVA is to match the Power Automate schema with the new Adaptive Card schema, there is an error where one has style as "string" and the other as a "date".
 
Please see image attached and if need any more details, please let me know.
 
So, if anyone else got the same issue and have a solution, please share in the community.
 
Thank you in advance.
 
Kind regards,
 
Fernando
PVACom.jpg
Categories:
  • HenryJammes Profile Picture
    Microsoft Employee on at

    I'm not sure Power Automate supports more formats than what is offered today. So you need to convert the date to a string format when passing the value from PVA to a cloud flow, using Text(Topic.Date)

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @HenryJammes ,

     

    Thank you for your reply. I really appreciate it.

    Not sure if I understood without seeing it as I'm not sure where the Text(Topic.Date) will be placed.

    I have tried many ways, but no success.

    Also, why do we need to do all of these now if the previous version was working fine and now not?

     

    Thank you,

     

    Fernando

  • Verified answer
    HenryJammes Profile Picture
    Microsoft Employee on at

    Hi @fernandosilva 

     

    Here's an example of what I mean.

    If you have a variable of type "Date" in PVA, you need to convert it to String so that Power Automate accepts it as an input for a String. For this, you can use the Text() Power Fx function.

     

    HenryJammes_0-1690546179267.png

     

     

     

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @HenryJammes ,

     

    I got it, but as I mentioned firstly, the data is coming from an Adaptive Card and not from a simple entity.

    I also, have an image attached in my first post.

     

    Cheers,


    Fernando

  • HenryJammes Profile Picture
    Microsoft Employee on at

    I don't understand how this is different from my simplified example.

    Your adaptive card also has a date variable as an output that you then want to send to a Power Automate cloud flow?

  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi Henry,

     

    Please see the attachment of my Output and you will see that there is no Formula tab to place the code, so Power Automate can pick it up as a string instead of a date.

     

    Cheers,

     

    Fernando

     

    2023-07-28 13.26.31 web.powerva.microsoft.com 54f6b43fa43b.png
  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at

    Hi @HenryJammes ,

     

    Thank you for your patience and replies.

    I managed to make it to work.

     

    Thank you and I will mark your reply as a solution for the topic.

     

    Have a great rest of your day.

     

    Cheers,


    Fernando

    2023-07-28 14.35.56 web.powerva.microsoft.com b087afdef7b6.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Copilot Studio

#1
11manish Profile Picture

11manish 113 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 83

#3
anirudhev Profile Picture

anirudhev 70

Last 30 days Overall leaderboard