Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

SharePoint Document Library Formula Sequential Numbering unique to each prefix

(0) ShareShare
ReportReport
Posted on by 13
Hello Everybody!
 

I am trying to create a column that will auto-populate a document number sequentially based on the prefixes when an item is created. I want the final numbering to look like this:

Are/DocType/Numb.

_____________________

FIN-FOR-001

FIN-FOR-002

FIN-PRO-001

FIN-PRO-001

HS-FOR-001

HS-FOR-002

HS-PRO-001

HS-PRO-002

 

I have one column called Department (i.e FIN, HS) and one column called Document Type (i.e FOR and PRO) and I am able to concatenate those two columns and use the ID as the number but this won't give me a sequential number based for each unique prefix arrangement. It will only give me the ID. 

 

Thank you and have a great day.

  • grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on at
    Re: SharePoint Document Library Formula Sequential Numbering unique to each prefix

    Just confirming - is this for a List or Library?

     

    If it's for a List, then can give you a fairly nice solution as you MUST enter all required fields before you can save the item.

     

    If it's for a Library, then it gets more complicated as you can upload a file and the metadata (including required fields) won't be added initially. So, if you're trigger is When a file is created, it likely won't have the Department or Document Type values to build the unique id.

  • Andrew_J Profile Picture
    1,962 Super User 2025 Season 1 on at
    Re: SharePoint Document Library Formula Sequential Numbering unique to each prefix

    @LuisPertence 

     

    I think I understand this and have undertaken something similar myself this week.

     

    The ID column will do all the leg work on sequential side, i.e. 1, 2, 3 etc.

     

    Andrew_J_2-1669295018347.png

    Maybe the above will help.  I would concatenate at the fee number in my example.

     

    Then use us the below to create the library.

     

    Andrew_J_1-1669294781840.png

    I hope the above helps you out.

     

    Regards,

     

    Andrew

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