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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sequencial Numbers/Yea...
Power Automate
Unanswered

Sequencial Numbers/Year Sharepoint List

(0) ShareShare
ReportReport
Posted on by 52

Hi!

How can I create a sequential numbering by year in a Sharepoint list. What would be the best way to handle this?

 

Test column
AE-0001-2022
AE-0002-2022
AE-0003-2022
AE-0001-2023

 

Whenever you create an item in the list, check the year and previous numbering to generate a new one and record it in the list item.

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @JarbasMartinho ,

     

    In short words, you can use Get items action to get the Test column value of the last record in the list. Before that, you need to initialize two string variables, which could be used for storing the second and third part of the test column value.

    vjefferni_1-1673340966379.png

    vjefferni_2-1673341016159.png

     

    In Update item, you can use a "concat" function to concatenate strings as well as variables with the dash symbol.

     

    Expressions used:

     

    last(split(items('Apply to each')?['Test column'],'-'))
    string(formatDateTime(utcNow(),'yyyy'))
    formatNumber(add(int(first(skip(split(items('Apply to each')?['Test column'],'-'),1))),1),'0000')
    concat('AE-',variables('1'),'-',variables('2'))

     

     

    Best regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard