Hi,
I am using MS Flow (Power Automate) using a Scheduled task - i.e. Recurrence, Execute stored procedure (V2), Create CSV Table and Send Email (V4). I have an issue formatting date/time. When I build my CSV table from a SQL Stored Procedure, the object 'ResultSets Arrived' appears as: 2022-04-01T10:29:19.14. I want this appearing as 01/04/2022 10:29 (i.e. dd/mm/yyyy hh:mm).
In 'Create CSV Table' I tried to create a custom column for 'Arrived' using expression:
Solving this because I worked it out. I need to use this function which closely resembles what was specified above and because i had NULL, I wrapped it with an If statement:
Ok, I have managed to sort out my CSV fields (in the Create CSV table) to have a custom expression:
Help!?
Thanks.
Hi there,
Sorry, how do I use the Compose Action?
Attached is screenshot of my flow as described earlier.
Before in Create CSV Table, I had Automatic, which meant the SP just put the fields into the CSV, but now I need to convert some fields from 2022-04-01T10:29:19.14 to 01/04/2022 10:29 and these objects are called: ResultSets Arrived, ResultSets Departed, ResultSets Host Notified.
I thought I'd be putting a formatting formula in the box highlighted to format the object coming from the SP (Stored Proc)?
Please help!
Thanks!
Hi there,
I think all you need is a Compose action with formatDateTime([Arrived], 'dd/mm/yyyy hh:mm').
If my reading up on Western Europe is right, then that's UTC itself, so it doesn't need to be converted assuming that's UTC that came out. And if it's stored in a different region, we need to know the region of the source - like Pacific, then it would need conversion using Source and Destination.
Let me know if this makes sense?
Cheers,
Rhia
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1