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 / How to extract Year an...
Power Automate
Unanswered

How to extract Year and Month values from Date field in share point list

(0) ShareShare
ReportReport
Posted on by 257

Now I have a flow that syncs any new office outlook events to a SharePoint list

In the list, I have the Month and Year columns(Single text type) I would like to make them get the Year and Month values from the start date column.

I inserted Apply to each step >> Compose for Year Expression>> Compose for Moth expression  as below but I got error when I run the flow.

formatDateTime(triggerOutputs()?['body/start'],'MMMM')
formatDateTime(triggerOutputs()?['body/start'],'yyyy')

 

 2021-04-08 12_54_07-Inbox - ghada.mehrez@flsmidth.com - Outlook.png2021-04-08 12_53_15-Inbox - ghada.mehrez@flsmidth.com - Outlook.png

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @gme-eg ,

    the error tells you that the

    triggerOutputs()?['body/start']

     is empty (= null). It's either empty or you're not using the proper dynamic content.

  • Mari Profile Picture
    Microsoft Employee on at

    Hello @gme-eg 

    Based on the screenshots and the explanation you shared, the Date value comes from the Get events (V4) action, so your expression should not use triggerOutputs(). Instead, you could use this in the Compose: 

     

    formatDateTime(items('Apply_to_each')?['start'],'MMMM')

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard