web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PowerAutomate input he...
Power Automate
Answered

PowerAutomate input help to Auto-Increment on Sharepoint List

(0) ShareShare
ReportReport
Posted on by 4
Hi all,
 
I'm going round and round in circles and can't seem to get what I need to work in Power Automate. 
 
I've followed so many YouTube videos and articles but nothing seems to be working.
 
Basically - I'm trying to set up an expenses sheet that tracks client expenses coming in. I have set up the SharePoint sheet - the basic functions I need work fine.
 
Now I need the SharePoint to generate a unique reference number each time I manually add an entry. 
 
It needs to continue on from our current list of reference numbers which is a simple incrementing number. I'd like to start this list from the number '16000'.
 
So each time I add an entry, I need the 'Reference Number' column to automatically go up by +1 from 16000.
 
A lot of posts I've tried to follow so far have more complicated features such as adding a date or a phrase within the command.
 
I want a very simple number increment - and need it to start at 16000. 
 
Can anybody please offer a solution? I'm going out of my mind trying to figure this out!
 
Thanks so much in advance -  
Screenshot 2026-06-16 110602.png
Categories:
I have the same question (0)
  • Suggested answer
    chiaraalina Profile Picture
    2,339 Super User 2026 Season 1 on at

    Hi @FC-16060954-0

    As your SharePoint list already exists, don’t assume the first item ID is 1.

    SharePoint already has a built-in auto-incrementing ID column. You can use that ID, but you need to calculate the correct offset so that the next new item becomes reference number 16000.

    First, show the built-in ID column in your SharePoint view and check the highest current ID.

    For example, if the highest current ID is 25, the next new item will normally be ID 26.

    To make ID 26 become reference number 16000, calculate:

    16000 - 26 = 15974

    Then in Power Automate, update your Reference Number column using:

    add(triggerOutputs()?['body/ID'],15974)

    That would give:

    ID 26 = 16000
    ID 27 = 16001
    ID 28 = 16002

    So the general rule is:

    Reference Number = SharePoint ID + offset

    where:

    offset = 16000 - next SharePoint ID

    Make sure the flow trigger is When an item is created, not When an item is created or modified, so the flow does not keep triggering itself.

    Let me know if it worked!

  • FC-16060954-0 Profile Picture
    4 on at
    Hi @Chiaraalina,
     
    Thank you so much for this suggestion! It worked! 
     
    There is a slight delay to it being applied to the sheet - is this normal?
     
    I really appreciate you taking the time to put this together for me. You have saved me a lot of mmy sanity!
     
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard