H
Problem
I'm unable to get a dynamic card in one of my flows to recognize any dynamic syntax that I've created as a date/time to be recognized as a string. I'm working in Power Automate. My flow is triggered manually by the user from teams (based on the template automated reminder). I'm using the adaptive card to capture information. (full payload below). I would like one of the elements (Input.Date) appear with a dynamic default value (tomorrow's date). However, I haven't found a way to make this work.
Trouble Shooting
- I've tried all of the following which result in a successful PREVIEW when developing, but fail to work at load:
- "${formatDateTime(utcNow(), 'yyyy-MM-dd')}"
- "${substring(utcNow(),0,10)}"
- I've tried with and without the quotes shown above
- This issue persists regardless of the element used -- if I type any of these in a text field, same result
- All of the above is true when troubleshooting in the Input.Time parameters.
Illustration
Within Power Automate, While Editing Card:
- I've inserted the dynamic text shown below both in date input parameter.
- I also inserted in text area just for texting
- I included hard-coded value in time just to make sure that I am not crazy in my understanding how default values should appear.
Preview Still within Power Automate
- This is what I would expect to see in preview mode (and the flow!)
- Both the text and date inputs have been recognized and populated, as does the time
View Once Flow Is Triggered
- This is NOT what I'd expect
- The text value displays the literal text instead of the date
- This doesn't change if I remove the quotes from the payload code

Why?
Full payload
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "Input.Date",
"spacing": "None",
"id": "remindDate",
"value": "
${formatDateTime(utcNow(), 'yyyy-MM-dd')}
"
},
{
"type": "Input.Time",
"spacing": "None",
"id": "remindTime",
"value": "09:30"
},
{
"placeholder": "Notes for reminder",
"type": "Input.Text",
"id": "NotesForReminder",
"isMultiline": true,
"value": "
${formatDateTime(utcNow(), 'yyyy-MM-dd')}
"
}
]
}