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 / Power Automate Include...
Power Automate
Answered

Power Automate Include month and year in path

(0) ShareShare
ReportReport
Posted on by 35

Hello all,

I was redirected here and hope for support.

 

I have a problem.

I have a source folder this is always variable by month and year.

 

 

Now I wanted to build a concatenation but a function with month and year does not exist in the automate. Unfortunately I don't have any ideas either.

 

4c4ab932-ba11-48c7-a938-cefe228565fb.png

This is my concat:

concat('/Shared Documents/MiLog-Dateien/EmailMessages_',month(utcNow()),'_',year(utcNow()))

 

I hope of you :).

 

Best regards.

 

Have a nice day.

Categories:
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @Schroeter ,

    Please take the following approach:

     

    concat(
     '/Shared Documents/MiLog-Dateien/EmailMessages_',
     formatDateTime(utcNow(),'MM'),
     '_',
     formatDateTime(utcNow(),'yyyy')
    )

     

    There is no such function as year() and month() in PowerAutomate. 

    Please take a look to available functions following https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference.

    Hope it helps !

  • Schroeter Profile Picture
    35 on at

    @gabibalaban Thank you very much 🙂

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 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard