cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Return only first item

I have a Filter Array and Select action that I am using to get a calendar event. The filter Array is set to only return results on the day the Flow is ran. This works in a different Flow I created, but reproducing the Flow to use a different calendar causes an Apply Each when configuring the Select action. I get that there could be multiple items in one day, but I won't in the way I have it set up. How can I avoid the Apply Each in this case? Below is a screenshot of the one that is working fine.

 

Filter Array = @equals(formatDateTime(item()?['EventDate'], 'yyyy-MM-dd'), formatDateTime(utcnow(), 'yyyy-MM-dd'))

2019-07-24_10-11-48.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @Anonymous ,

 

Could you please share a screenshot of your flow when an Apply to each is automatedlly added? I have made a test on my side a don't have the issue the you mentioned. 

 

Also if you would like to get the first item from an array, you could take a try with expression as screenshot below:

1.png

 

 

Best regrads,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-alzhan-msft
Community Support
Community Support

Hi @Anonymous ,

 

Could you please share a screenshot of your flow when an Apply to each is automatedlly added? I have made a test on my side a don't have the issue the you mentioned. 

 

Also if you would like to get the first item from an array, you could take a try with expression as screenshot below:

1.png

 

 

Best regrads,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

What do we use the select operation for ?

@v-alzhan-msft I tried this with the body from an excel table but here it wouldn't work with just getting the first item. Do you know what the remedy would be?

Screenshot 2022-04-04 at 09.42.01.png

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,780)