We have been migrating over from AGOL to enterprise. In one of our field maps, when we try to add a new related record to the water meter related table the the parent meter id (meterno is its name in the feature class table) will not populate using the following arcade expression.
Everything nlooks right but is there some difference in terms in portal vs online?
Thank you.
Tim
// Get the feature set for the related wMeters feature
// and return only FacilityID
var fset = FeatureSetByRelationshipName(
$feature,
'',
['MeterNo'],
false
);
// Get the first water meter (should only be one)
var parentFeat = First(fset)
// If there was a meter, return its Facility ID,
// Otherwise, return null
if (!IsEmpty(parentFeat)) {
return parentFeat['MeterNo']
} else {
return null
}