Select to view content in your preferred language

Arcade Expression works in Field Maps app but not in Forms Map View

49
0
yesterday
KristenKlaphake1
New Contributor

Hi all,

I created an Arcade expression using the Field Maps Designer 2 days ago (10/22/25). The arcade expression creates a unique id based on the initials of the user and getting the latest object id as a starting counter plus 1.  This worked when I tested it in the Field Maps designer map and also in the FieldMaps app. This expression functions in an offline scenario.  

Today I added a new record in the Field Maps designer map and the record did not populate, although the "Create Features" display box shows the value, once I click "Create" no value is transferred to the record.  When I run the same map in FieldMaps the value is populated correctly.

Help, am I crazy?

Here's my code:

if(!isEmpty($feature.WaypointID )){
  return $feature.WaypointID
}
var userInfo = GetUser($layer);
var numberlist = FeatureSetByName($map,"Waypoint")
var topnum = Top(OrderBy(numberlist,'OBJECTID DESC'),1)
var counter = Number(Max(topnum,'OBJECTID'))
var id = counter+1

return Text(left(userInfo.username,2) + "-" + id);

 

 

0 Kudos
0 Replies