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 / Power Automate / date format in mail by...
Power Automate
Unanswered

date format in mail by Dynamic content

(0) ShareShare
ReportReport
Posted on by 20

Hi, 

 

First of all, Power Automate is new to me, so be gentle wiht te technical explenations please. 

I'll try to outline my problem. 

 

I have created a flow that checks the content of a List and automatically sends an emial. 

Works properly, and mail arrives correctly at the adres in the List. 

Data is also included in the mail by means of "dynamic content"

RCO484_0-1688991532891.png

 

In the mail itself however, the data is displayed as year/month/day. 

Is there a way to change this? 

 

ronny

 

 

 

 

Categories:
  • annetoal Profile Picture
    1,934 Moderator on at

    Use the formatDateTime expression. This article will explain the formatDateTime expression and how to use it.

     

    If this helped, please mark it as a Solution and give it a thumbs up.

    Anne

  • RCO484 Profile Picture
    20 on at

    Hi Annetoal, 

     

    Thank you for your response. 

     

    Can i use both in the same action? 

    I retrieve the data (date) from a list via dynamic content to be inserted in the mail. 

  • annetoal Profile Picture
    1,934 Moderator on at

    Probably. But to make sure I understand your question, please post your code showing what action you are talking about.

     

  • RCO484 Profile Picture
    20 on at

    Annetoal, 

     

    As i mentiond i am new to PA and not familiar with code. 

    I presume this is what you mean? 

     

    {
     "inputs": {
     "host": {
     "connectionName": "shared_office365",
     "operationId": "SendEmailV2",
     "apiId": "/providers/Microsoft.PowerApps/apis/shared_office365"
     },
     "parameters": {
     "emailMessage/To": "@{items('Apply_to_each')?['MailadresRP']}; @{items('Apply_to_each')?['mailextra']}",
     "emailMessage/Subject": "reminder versturen aanvraag KGA",
     "emailMessage/Body": "<p>,Beste parkwachter van @{items('Apply_to_each')?['titel']},<br>\n<br>\nDeze mail even ter herinnering om <span style=\"color: rgb(226,80,65)\"><u><strong>vandaag </strong></u></span>@{items('Apply_to_each')?['datumteverzenden']} je mail te versturen met aanvraag KGA naar Veolia.<br>\nDe afhaling zal vervolgens gebeuren op @{items('Apply_to_each')?['Datumvanophaling']}.<br>\n<br>\n<br>\nDit is een herinneringsmail om jullie eraan te herinneren dat je vandaag @{items('Apply_to_each')?['datumteverzenden']} de bestelbon naar Veolia moet doorsturen voor de wissel van @{items('Apply_to_each')?['Datumvanophaling']}.<br>\n<br>\n<span style=\"color: rgb(147,101,184)\"><u><strong>Hoe de bestelbon invullen:</strong></u></span><br>\n1. Zorg dat je het juiste park en adres vermeld in vak ‘Locatiebenaming’ en ‘Afhaaladres’<br>\n2. Vul in kolom ‘Aantal vol ophalen’ de aantallen volle recipienten die ze moeten ophalen<br>\n3. Vul in kolom ‘Aantal leeg leveren de aantallen die je ook als vol hebt opgegeven zodat je voor een volle bak ook een lege in de plaats krijgt.<br>\n4. Heb je extra recipienten nodig? We zijn samen met Veolia alle parken afgegaan en hebben extra recipienten laten leveren waar nodig. Heb je nu toch nog niet genoeg? Je kan nog een extra recipient via de bestelbon aanvragen maar contacteer ook Intradura. Dan bekijken we samen hoe dat komt.<br>\n5. Noteer in kolom ‘Etiketten’ als je een nieuwe voorraad etiketten nodig hebt. Bestel ze op tijd. Het kan gebeuren dat ze die de komende wissel nog niet bij hebben.<br>\n(aantal palletruimten hoef je niet in te vullen)<br>\n6. Stuur deze (mag ook ‘s avonds zijn bij sluiting) naar het mailadres op de bestelbon: be.ves.kga.all@veolia.com<br>\n<br>\n<span style=\"color: rgb(147,101,184)\"><u><strong>Hoe klaarzetten?</strong></u></span><br>\n1. Zet de volle recipienten altijd op dezelfde plaats. Het zijn (normaalgezien) vaste chauffeurs die ondertussen weten waar het staat.<br>\n2. Zet de kleine recipienten op een pallet en pak ze in voor transport. Op jullie planning staat dat inpakken niet hoeft maar onze ervaring leert dat de chauffeur dit toch vragen.<br>\n3. Zorg ervoor dat er de juiste sticker op kleven.<br>\n<br>\nVerloopt de wissel op @{items('Apply_to_each')?['Datumvanophaling']} niet zoals gepland?<br>\n(er is bijvoorbeeld geen wissel gebeurd, te weinig recipienten geleverd, ze hebben niet meegenomen wat er op de bestelbons staat,…)<br>\nMeldt dit aan Intradura via mail :<br>\nRp’s uitgebaat door Intradura: Patrick Claeys, patrick.claeys@intradura.be<br>\nRp’s uitgebaat door de gemeente of Interrand: Hilde Fauconnier: hilde.fauconnier@intradura.be<br>\n<br>\n<br>\n<span style=\"font-size: 14px\"><strong>Intradura</strong></span><span style=\"color: rgb(84,172,210)\"><br>\n</span><span style=\"color: rgb(84,172,210)\"><strong>tel: 02/344 17 40</strong></span><br>\nrp@intradura.be<br>\n<br>\n<span style=\"color: rgb(84,172,210)\">Dorent 5, 1620 Drogenbos</span><br>\nwww.intradura.be<br>\n<br>\n<span style=\"font-size: 8px\">Deze e-mail (en zijn bijlagen) kan persoonlijke of vertrouwelijke informatie bevatten. Indien u deze e-mail per vergissing zou ontvangen vragen wij u ons te verwittigen per telefoon of e-mail en hem te vernietigen zonder hem kenbaar te hebben gemaakt aan enige derde. De inhoud van de e-mails en de toegevoegde bestanden zijn afkomstig van de auteur en verbinden niet noodzakelijk Intradura tenzij dit bevestigd wordt d.m.v. een terzake geldig ondertekend document van Intradura.</span><br>\n<br>\n</p>",
     "emailMessage/Importance": "Normal"
     },
     "authentication": "@parameters('$authentication')"
     },
     "metadata": {
     "operationMetadataId": "78a51439-7f86-4a0c-9062-f7f7abed604e"
     }
    }

     

  • annetoal Profile Picture
    1,934 Moderator on at

    Actually I was hoping for a screenshot of your Flow Designer showing the sequence of actions, and something more detailed explaining what you were asking by "Can I use both in the same action?" Without knowing what action you mean, it's impossible to guess at the answer.

  • RCO484 Profile Picture
    20 on at

     

    ok, i think i'm a bit stuck right now. I modified my List and now the flow doesn't work anymore. 

    I get this error;

     

    The expression "verzending eq 07/17/2023" is not valid. Creating query failed.
    clientRequestId: 7c6b5507-39cc-4aba-9b4b-7604eda089a4
    serviceRequestId: 7c6b5507-39cc-4aba-9b4b-7604eda089a4

     

    RCO484_0-1689598983220.png

    The column is the List is named "verzending"

    RCO484_1-1689599075291.png

     

    this is a screenshot of the flow

    RCO484_2-1689599287454.pngRCO484_3-1689599445422.png

     

     

     

  • annetoal Profile Picture
    1,934 Moderator on at

    Look at your SharePoint verzending column. How are the datestrings formatted? If they're not formatted identically to the way you're formatting utcNow() in your addDays expression, then make them both the same.

    If you can't make it work that way, you might consider using a Filter action (after the Get items) instead of the ODATA expression.

  • RCO484 Profile Picture
    20 on at

    I have now adjusted my variable in the flow as well as the format of my date in list. Think everything is the same format now.

    RCO484_0-1689602252071.pngRCO484_1-1689602289408.png

    Also system date is the correct format

    RCO484_2-1689602482900.png

     

    Still getting an error when testing.

    RCO484_3-1689602561695.png

     

     

  • annetoal Profile Picture
    1,934 Moderator on at

    Can you make it work inserting a Filter action after the Get items action (deleting the ODATA query)?

  • RCO484 Profile Picture
    20 on at

    Sorry, I don't understand what you mean by this.

     

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 > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard