I am doing inspections and I'm trying to pull in the facility name in the inspection table from the related layer.
Here is the expression that I'm using, which displays when we test but not in the field map applications.
var sitename = FeatureSetByRelationshipName($feature,"L1GI_Inspection_Sites" , ['fse_name'])
var site = First(sitename)
if (!IsEmpty(site)) {
return site['fse_name']
} else {
return null
}