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 / SharePoint Document Li...
Power Automate
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.

Categories:
I have the same question (0)
  • Andrew_J Profile Picture
    1,962 Moderator on at

    @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

  • grantjenkins Profile Picture
    11,063 Moderator on at

    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.

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 410

#2
Vish WR Profile Picture

Vish WR 289

#3
David_MA Profile Picture

David_MA 282 Super User 2026 Season 1

Last 30 days Overall leaderboard