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
Community Champion
Community Champion

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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,950)