I created a log table in a file geodatabase. (Just my playground for right now). In this log table I want to keep track of the type of edit done to my feature classes, the name of the feature class, date, username, objectid and globalid in the feature. I have gotten all but one piece of the puzzle, the username. Here is my code below:
return {
"edit": [
{
"className": "Logs",
"adds": [{
"attributes": {"editType": $editContext.editType,
#For Each Attribute Rule Put in Feature Class Name Below
"fclassName": "VA_SouthParcels",
"Date": Date(),
"fclass_GlobalID": $feature.GlobalID,
"fclassObjectID": $feature.objectid } }]
}
]
} I have looked the documentation for the ArcGIS Arcade functions of GetUser, however I can't quite get it to work, any help would be appreciated.
Thanks!