Arcade Expressions Wont Calculate

262
1
05-15-2024 06:45 AM
DaveK
by
Frequent Contributor

Hello!

I'm creating a Field Maps app for data collection. I have a unique ID field that I would like auto calculated based on the time down to the millisecond. I'm using an Arcade expressions for this. The Now() function doesn't get does that far but if I use Time(Now()), then I do get milliseconds. Unfortunately, this function as well as many others don't see to calculate in the Field Maps app. Is this typical behavior? Should I be formatting my Arcade expressions in another way to allow them to work? Any help is appreciated. 

DaveK_0-1715780667694.png

 

DaveK_1-1715780701813.jpeg

 

 

Thanks. 

0 Kudos
1 Reply
ChrisDunn1
Esri Contributor

Hi @DaveK ,

The Time() function is not yet supported in Field Maps, it will be in a future release.

In the meantime, you can format the timestamp to get miliseconds using:

 

return Text(Now(), 'dddd, MMMM D, Y @ h:m:s:SSS')

 

Note that the "SSS" for milliseconds is case-sensitive and needs to be capitalized.

I hope that helps!

Chris