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 Apps / Unique Identifier, sta...
Power Apps
Answered

Unique Identifier, static date

(0) ShareShare
ReportReport
Posted on by 19

HI,

 

Got a sharepoint form customised with powerapps, trying to create a unique identifier using:

First 3 letters of a field 

Date (YYMMDDHHMMSS)

First and Last name inittials of submitter

 

The problem is that the date is not static (changes as fields are updated or when item is edited) also when someone edits the form the initials drop off... 

 

any help to keep those fields static as soon as it is created would be great! Capture.PNG

Categories:
  • Verified answer
    clare-sy Profile Picture
    35 on at

    hi ,  you can make the card's UPDATE property different based on formmode,  if the formmode is new, you can make update the text information , if it's changing or updating , set the update property to false, then it will not be changed .

    If ( SharePointForm.Mode=FormMode.New, DataCardValue.Text,false)

     

    hope that can help you.

     

    I've tested on my sharepoint form ,it  turns out that false goes to nonsense, but I try another way it goes correctly,

    1st step set the sharepoint integration's onedit property:

    Set(vartime,Label1.Text); EditForm(SharePointForm1)

    which means if you're editing information, it well at first set the time related text to a variable,

    1st.png

    2nd step:

    the label that contains the time related text ,set the text property below:

    If(SharePointForm1.Mode=FormMode.New, Text(Now(),"[$-en-US]yymmddhhmmss"),vartime)

    2nd.png

    that means if the formmode is edit ,then it will stay the originally text unchanged.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard