cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Stijn007
Advocate III
Advocate III

Get first item of a sharepointlist

Hello, 

 

I can't figure out to get only the first item . How can you filter the part " Get items"? 

1 ACCEPTED SOLUTION

Accepted Solutions
v-alzhan-msft
Community Support
Community Support

Hi @Stijn007 ,

 

You could set the Top Count column to 1 if you only want to get the first item with the Get items action.

1.png

 

 

Best Regards,

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

5 REPLIES 5
PrasadAthalye
Super User
Super User

Try following expression

 

first(body('Get_items')?['Value'])?['FileID']

 

Please mark this as Answer if this resolves your problem. Thank You.

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community
v-alzhan-msft
Community Support
Community Support

Hi @Stijn007 ,

 

You could set the Top Count column to 1 if you only want to get the first item with the Get items action.

1.png

 

 

Best Regards,

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.

 

Hello,

 

the get items part always gives me a strange error:

Shared_sharepointonline doesn't exist. De possibil parameters are shared_teams

Stijn007_0-1597387493991.png

 

Hi @Stijn007 ,

 

Please make sure that you have created valid connection to the SharePoint.

 

Best Regards,

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.

I recreated my flow from scrath and now it works with using 1 in the top count section. 

Helpful resources

Announcements
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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Users online (2,035)