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 Apps / Not able to add ShareP...
Power Apps
Answered

Not able to add SharePoint dates to PowerApps collection

(0) ShareShare
ReportReport
Posted on by 34

I have a SharePoint list with approx 20 columns. I am trying to add those in PowerApps collection using ForAll formula. This way, I am able to add everything but not dates from SharePoint's date column name Created. I tried following codes (Inside ForAll loop)

 

 

 

 

 

 

ForAll(
Collection,
Collect(
colMonth,
{
 Created: Text(DateValue(Memos.Created,"[$-en-US]mmmm")),
 Created_Month: Text(DateValue(First(FirstN(Split(Created,"/").Result,1)).Result),"[$-en-US]mmmm"),
 Created_Year: First(FirstN(Split(Last(LastN(Split(Created,"/").Result,2)).Result," ").Result,1)).Result
}
)
);

 

 

 

 

 

 

When I try to run "App Start", then all other collection columns have values but not the dates.

 

UnJu0Please help.

Thank you!

Categories:
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @AnuragT,

    Do you want to create a separate collection to display month and year value?

    Could you please tell me more about your scenario?

     

    I think there is something syntax wrong with your formula. Actually, the DateValue() function expects a number value as the first parameter, however you reference to the Memos.Created directly.

     

    Please modify your formula as below:

    ForAll(
    Collection,
    Collect(
    colMonth,
    {
     Created: Text(Created,"[$-en-US]mmmm"),
     Created_Month: First(FirstN(Split(Created,"/").Result,1)).Result,
     Created_Year: First(FirstN(Split(Last(LastN(Split(Created,"/").Result,2)).Result," ").Result,1)).Result
    }
    )
    );

     

    vqiaqimsft_0-1640919891782.png

     

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 Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 239

Last 30 days Overall leaderboard