I've got an expression which I use to update a status field for a point feature layer (BikePedCountSites). The expression takes the status value from the most recent related record (BikePedCountRecords), which then allows me to symbolize the point features by if they are "Active" or "Done". I felt very proud of myself when I got this to work in the web map. I am able to update the related record and the expression updates the status value for the point layer. However, when I went to update and add new records using field maps the expression fails to calculate and does not update the status field of the point layer.
Solved! Go to Solution.
you are missing the field name here. start there
var relatedrecords = FeatureSetByRelationshipName($feature, 'BikePedCountRecords_122023',['AddFieldName'], false)
you are missing the field name here. start there
var relatedrecords = FeatureSetByRelationshipName($feature, 'BikePedCountRecords_122023',['AddFieldName'], false)
That did it. Thanks!