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 Apps / need help generating a...
Power Apps
Answered

need help generating a unique ID. almost have it but get an error.

(0) ShareShare
ReportReport
Posted on by 359

Hi. Is there something wrong with our formula? It gives us an error. We are just trying to generate a unique ID based on Date and Time.

 

If(SharePointForm1.Mode = FormMode.New, "XVOD"&Text(Now(),"[$-en-US]yyyymmddhhmmss")&"00", ThisItem.AssetID1); 

 

Screen Shot 2019-10-14 at 8.15.45 AM.png

Categories:
I have the same question (0)
  • cds Profile Picture
    1,001 on at

    What error are you getting

  • Verified answer
    timl Profile Picture
    36,415 Super User 2025 Season 2 on at

    Hi @cchan000 

    I think the trailing semi-colon is causing this error.  I would remove it to see if it fixes the problem.

    If(SharePointForm1.Mode = FormMode.New, "XVOD"&Text(Now(),"[$-en-US]yyyymmddhhmmss")&"00", ThisItem.AssetID1)

     

     

  • cchan000 Profile Picture
    359 on at

    THANK YOU SO MUCH.

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard