Hey folks,
Stumbled upon this post, Advanced Attribute Rules - Editing features on another class with attribute rules where inserting a point created a buffer polygon feature class. I wanted to use this when a user creates an annotation feature a similar rule would create a point feature class. When I use almost identical code just pointed to a point feature class.
var featureGeo = Geometry($feature);
return {
"result": $feature.OBJECT__ID,
"edit": [
{
"className" : "LocalPoints",
"adds" : [
{
"attributes":
{
"TextString": $feature.TextString
},
"geometry": featureGeo
}
]
}
]
}
I get the following error..

Am I using the wrong function to return the annotation feature geometry? Or is it my Pro Version? 2.6.6
Any help for this noob is appreciated!
~j