cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
timl
Super User III
Super User III

How to format date/time values from an input set of rows?

How do I apply a custom date format to an input set of rows? The use case scenario for this is that I'd like to retrieve a set of rows and to format the date values for use in an email notification.

 

The screenshot beneath shows what I'm trying to do.

 

 

format1.PNG

 

However, the output from this step returns the literal command:

 

format2.PNG

 

What would be the correct syntax to use in this example? Thanks!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

@timl

 

Have you tried editing in text mode? This is an example of a Select action block I implemented several weeks ago, unfortunately I did not need to manipulate values, just select some of the columns and rename the titles

{

"Aplicación": "@item().Aplicación",

"Version Name": "@item().Version_x0020_Name",

"Version Code": "@item().Version_x0020_Code",

"Testing Level": "@item().Testing_x0020_Level",

"Acción / Status": "@item().Acción_x0020__x002f__x0020_Status",

"Resultado": "@item().Resultados_x0020_express"

}

View solution in original post

4 REPLIES 4
v-monli-msft
Community Support
Community Support

Hi @timl,

 

Please check below blog to see if this helps:

http://www.gilleran.net/sharepointireland/index.php/change-date-format-in-microsoft-flow-emails/

https://powerusers.microsoft.com/t5/Connecting-To-Data/formatDateTime/td-p/24013

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Mona,

 

Thanks for your reply.

 

Just to clarify, my requirement is to format the values from multiple rows. The article you mention focuses on formating a single value, so it's not quite the same.

 

An example of the thing I'd like to do is to send an email with a tabular list of contracts that are due for renewal.

 

I think what I have above is pretty close. I think I'm not escaping the command correctly or that there might be some other minor step that I need to carry out to make this work.  From the screenshots above, can you spot what this might be?

 

Many thanks.

@timl

 

Have you tried editing in text mode? This is an example of a Select action block I implemented several weeks ago, unfortunately I did not need to manipulate values, just select some of the columns and rename the titles

{

"Aplicación": "@item().Aplicación",

"Version Name": "@item().Version_x0020_Name",

"Version Code": "@item().Version_x0020_Code",

"Testing Level": "@item().Testing_x0020_Level",

"Acción / Status": "@item().Acción_x0020__x002f__x0020_Status",

"Resultado": "@item().Resultados_x0020_express"

}

View solution in original post

timl
Super User III
Super User III

Thanks @efialtes! That solved the problem and the date format function works as expected.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,187)