Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Auto Increment Sharepoint starting at 1

(0) ShareShare
ReportReport
Posted on by 4

Afternoon,

 

Hopefully I am asking this in the right location.

 

I am trying to automate a number incrementing system in sharepoint with flows and not having much luck.  It needs to be based on 2 columns.  The type Column is a dropdown.  If set to internal, it needs to give the next plan number (1, 2, 3, etc).  If set to external it needs to give a unique number from a excel table that can only be used once.  The excel table currently has 2 columns, one with the unique numbers and the other with a dropdown that says used or available.

 

Example

Job NumberTypePlan Number
111Internal1
111Internal2
111ExternalEX1
222Internal1
222Internal2
333Internal1
333ExternalEX2
333Internal2

 

Hopefully someone is able to help with my issue

 

Cheers

  • TEmmerton Profile Picture
    4 on at
    Re: Auto Increment Sharepoint starting at 1

    Unfortunately I couldn't get that to work.  Sorry if I have missed something from your explaination.  I am very new to Sharepoint and flows.

     

    This is a snapshot the actual sharepoint list.  The Project number needs to get a plan number starting at 1 when set to internal. So each new Project Number starts back at 1.  I figure it might need a different flow for each item in the Plan type column.

    TEmmerton_0-1707254015495.png

     

    I didn't do the no side from your original guide as there are 3 items in the drop down.

    TEmmerton_4-1707254317695.png

     

    TEmmerton_3-1707254286997.png

     

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at
    Re: Auto Increment Sharepoint starting at 1

    @TEmmerton  you can create a flow with trigger when new item is created, then using condition action check if the type is Internal, then add Get Items under yes branch of condition action, with filter query to get matching row with Type eq Internal and set order by with Plan Number desc and set Top count to 1, this will give you the highest Plan number from the list and you can add 1 to it and set the incremented value in the current item using Update item action. In the no branch of condition action, you can use List Rows action with filter query to get matching item from the excel file to get the unique number and then again use Update Item action to update the unique number in the current item.  

  • TEmmerton Profile Picture
    4 on at
    Re: Auto Increment Sharepoint starting at 1

    Yes it will be when creating a new item

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at
    Re: Auto Increment Sharepoint starting at 1

    @TEmmerton when you want to set the this number, when new item is created?

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1