Welcome to Microsoft Q&A forum and thanks for reaching out here.
Seems like you are pretty close to the solution. Have you tried the below format?
To get the current date in the format yyyy-MM-dd
:
@{formatdatetime(utcnow(),'yyyy-MM-dd')}
To get the current time in the format hh-MM-ss:
@{formatdatetime(utcnow(),'hh-MM-ss')}
Try configuring request body like below example:
[ { "start_date": "@{formatdatetime(utcnow(),'yyyy-MM-dd')}" "start_time": "@{formatdatetime(utcnow(),'hh-MM-ss')}" "end_date": "@{formatdatetime(utcnow(),'yyyy-MM-dd')}" "end_date": "@{formatdatetime(utcnow(),'hh-MM-ss')}" } ]
Please give a try and let me know how it goes. If that doesn't work, feel free to share the combinations you have tried so that it will help me try different ways other than what you have tried along with the error message you have received.
Hope this helps. Let us know how it goes.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.