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 Apps / Creating Array of Date...
Power Apps
Unanswered

Creating Array of Dates and related data

(0) ShareShare
ReportReport
Posted on by 2,407 Super User 2024 Season 1

I'm trying to generate a list of Birthdays from a SP list. I have the following steps - the Get List filters out the null entries. Then the Filter is set to: formatDateTime(item()?['Birth_Date'],'MM')  is equal to convertFromUtc(utcNow(),'GMT Standard Time','MM'). I'm then trying to create an HTL table to include in an email. No matter what I put in the "From" I get an apply to each step - which is not what I want - I want to create one table.
I have another flow that generates a table of dates that are less than 60 from now. In that flow I did not get the "Apply to Each"
What am I doing wrong?

Can I Do the filter in the "Get List" step? Is there a better way to filter on a 'MM' formatted date?

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @BrianS ,

     

    Please post the full output of Filter Birthday List action in flow run history.

    I made a test on my side, but I can't reproduce your issue. If I selected Body (of Filter Birthday List) into from field, no 'Apply to Each' appeared. 

    However, I still made a workaround for your scenario when the 'Apply to Each' appeared:

    1. initialize an Array variable before the 'Apply to Each'

    2. Append an item to Array variable within 'Apply to Each' loop, the Item is defined in JSON format, and the value expression resembles as below.

    items('Apply_to_each')?['Title']

    3. At last, add a 'Create HTML Table' action to convert the Array to HTML format. 

    Snipaste_2020-11-09_11-55-22.pngSnipaste_2020-11-09_12-01-02.png

     

    Hope this helps.

    Sik

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard