cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BiggestNizzy
New Member

Getting the next line on a sharepoint list

I have a SharePoint list that contains some information I want to take a single row from this list and use in a Teams conversation.

 

This is scheduled to run every day but I want it to send a new row every day.

 

i.e.

Monday - Row 1

Tuesday - Row 2

Wednesday...

Day 365 - Row 365

 

I am struggling with the bit that tells it to move on to the next row each time it runs.

 

Any help would be greatly appreciated.

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

 

Hi @BiggestNizzy ,

 

Follow @efialttes 's suggestion, you could refer to the following image to configure flow.

 

Add a Yes/No column to check whether the current item has been sent.

Use Get items to get all items and sort them in ascending order by ID.

Image reference:

11.PNG12.PNG13.PNG

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
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

2 REPLIES 2
efialttes
Super User III
Super User III

Hi!

You need to store somewhere which is the next row to be reported, since your flow is executed daily.

Did you considered adding a new yes/no column to your sharepoint list, to store such info. So everytime your flow is executed it shall 'get items' with an ODATA filter to grab the one with a 'yes' value on this new column. Once reported, you need to update this item (set new column value to no) and update the next one (set new column value to yes)

You can even use ID standard metadata column column as your index, so in order to find the next one to be reported, you can play also with 'Get items' + an ODATA expression assigned to 'filter query' input + ODATA expression assigned to 'Order by' input to grab next item whose ID is higher than the one currently reported. ONce identified, you can update it.

Hope this makes sense



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



v-bacao-msft
Community Support
Community Support

 

Hi @BiggestNizzy ,

 

Follow @efialttes 's suggestion, you could refer to the following image to configure flow.

 

Add a Yes/No column to check whether the current item has been sent.

Use Get items to get all items and sort them in ascending order by ID.

Image reference:

11.PNG12.PNG13.PNG

Hope this helps.

 

Best Regards,

Community Support Team _ Barry
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

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (50,655)