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 / create unique referenc...
Power Automate
Answered

create unique reference code

(0) ShareShare
ReportReport
Posted on by 9
Hello how are you? I need help, I have a list in sharepoint, I want each time an element is created, it creates a unique code, made up of the SGAC prefix, creation date and ID, that is, like this: SGAC-20240303-1. How do I do the power automate?
Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @Alexnader 

    According to your description, you want to create a unique id column in sharePoint list. This is my test data and my generated unique ID column:

    vyueyunmsft_0-1709531569943.png

    This is my test flow:

    vyueyunmsft_1-1709531602936.png

    Trigger you need to open the "Split On":

    vyueyunmsft_4-1709531880708.png

     

    (1)Get items action:

    vyueyunmsft_2-1709531678346.png

    formatDateTime( triggerOutputs()?['body/Created'] , 'yyyy-MM-ddT00:00:00Z' )
    formatDateTime( triggerOutputs()?['body/Created'] , 'yyyy-MM-ddT23:59:59Z' )
    triggerOutputs()?['body/ID']
     
    (2)Update Item action:
    vyueyunmsft_3-1709531805964.png
    formatDateTime(utcNow(), 'yyyyMMdd')
    length(outputs('Get_items')?['body/value'])
     
     
     

     

    Best Regards,

    Yueyun Zhang

     

     


     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard