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 / Create a variable for ...
Power Automate
Unanswered

Create a variable for Current Month

(0) ShareShare
ReportReport
Posted on by 8

I want to create a variable where the current month is within the subject line of an email I send on a recurring monthly basis. However, I'm not sure how that is supposed to work.

 

Can anyone assist with this?

Categories:
I have the same question (0)
  • WBADAM03 Profile Picture
    179 on at

    Make an init variable and set it to string.

    Then write an expression.

    Then just include the variable as a dynamic content in the subject

    This might help you regarding what kind of expression to write:

    https://debajmecrm.com/how-to-get-year-month-and-day-in-various-formats-from-a-date-in-power-automate/

  • wskinnermctc Profile Picture
    6,519 Moderator on at

    You just need to format a datetime to get the month name.

     

    To get the current month would be:

     

    utcNow('MMMM')

     

     

    To get the month name from another date source would be:

     

    formatDateTime({yoursource},'MMMM')

     

     

    You can see how to get the month name from this post:

    https://powerusers.microsoft.com/t5/Building-Flows/Return-the-Month-name-from-date/td-p/664424

     

    Here is a variable with the current month's name. Then put that variable in the Subject line.

    Month Name Variable Email SubjectMonth Name Variable Email Subject

     

    Let me know if this works for you.

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