web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Format date from a Sha...
Power Automate
Unanswered

Format date from a SharePoint list not working

(0) ShareShare
ReportReport
Posted on by 10

I am trying to use information captured in a SharePoint list to populate a word document. One of the fields in the template is the 'Date Received', which is recorded in PowerApps and then uploaded to the SharePoint item. 

 

If I just enter the 'date Received' dynamic content into the word template, it shows in format yyyy-MM-dd, and I want it to display either in long date form or dd/MM/yyyy. I have already tried the formatDateTime function, but for some reason it wont let me select the date received in the dynamic content - it wont even show up. See below, where I have added compose as the very first step:

 

Elisabeth1_0-1708576948809.png

 

I have already tried initialising a string variable that just contains the date output, though this automatically jumps into an 'apply to all' scope for some reason, and then I still cannot select the variable from dynamic content when trying to compose. I can compose within the 'Apply to all' scope, but then again still cannot use the output when selecting from dynamic content in the populate word doc action. 

 

Elisabeth1_1-1708577165363.pngElisabeth1_2-1708577216548.png

 

(note the file path output is unrelated)

 

Any ideas on how I can convert this date value to appear in dd/MM/yyyy format in my word doc??

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @Elisabeth1 Sometimes when you use an expression, the dynamic content isn't available to select. Take a look at this section of the YT Tutorial I've linked below. 

     

    For more flow troubleshooting tips—check out this YT Tutorial: 5 Power Automate Troubleshooting FAQs and Helpful Tips for Creating Better Flows

    In this tutorial I cover:

     How to troubleshoot a false Condition action result

     How to get dynamic content when it isn’t selectable from the list of dynamic content

     How to troubleshoot an Apply to Each action that isn’t looping through

     How to troubleshoot a skipped Apply to Each action

     How to troubleshoot a Filter Query

     How to use a SharePoint yes/no column in a Filter Query

     How to use Compose actions to troubleshoot a Power Automate flow

    How to troubleshoot multiple emails being sent

     How to troubleshoot multiple Teams messages being sent

     

    Hope this helps!


    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response! If you're feeling generous— ️  Buy me a coffee: https://www.buymeacoffee.com/acreativeopinion

    👉 Watch my tutorials on YouTube
    👉 Tips and Tricks on TikTok
     

  • Elisabeth1 Profile Picture
    10 on at

    thanks for this, though I receive a save error when trying to save the flow:

    Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The repetition action(s) 'Apply_to_each_4' referenced by 'inputs' in action 'Compose' are not defined in the template.'.'.

    This happens whether I place the compose action inside or outside my flow condition parameter, and also as the very first step.

  • v-yetonggu-msft Profile Picture
    on at

    Hi @Elisabeth1 ,

    Could you post a complete screenshot of your flow? And the configuration of all controls.

     

    Best Regards,

    Sunshine Gu

     

  • Elisabeth1 Profile Picture
    10 on at

    Hi @v-yetonggu-msft ,

     

    My flow has over 150 actions when all scopes are expanded, though here is a screenshot of the controls and actions from the trigger to the word document I am populating:

    Elisabeth1_1-1708579600924.png

     

    The parallel branch that is cut off just contains a monday.com update.

     

     

  • Maria_Kon1994 Profile Picture
    60 on at

    Hi,

    I am trying to get UK dates from an excel spreadsheet (data in UK date format) to a Word document through mergefield by using Power automate. However, unsuccessfully, it the word file gets only US date format.

     

    1. Below is the excel sheet with the UK data format – MM1, MM2 etc = Mergefileds corresponding to dates:

    Maria_Kon1994_6-1708963122941.png

     

    1. Tried to get in the above excel dates (UK format) in the below column of the Word document with the Mergefields (MM4 etc) BUT they appear in US format & added time besides the efforts and formulas set (check below)

    Maria_Kon1994_7-1708963122943.png

     

     

    1. The formulas used to convert date are below

    Maria_Kon1994_8-1708963122945.png

     

     

    Maria_Kon1994_9-1708963122947.png

     

     

    Maria_Kon1994_10-1708963122949.png

     

     

    1. Any ideas on how I can convert this date value to appear in dd/MM/yyyy format in my word doc?? OR Ideally, we want to get the date value to appear in this UK format: Mon 18 Mar 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard