Hi @KeithBurdette1 - By chain I meant use Filter and FeatureSet in the same call to reduce round trips to the server. But you're spot on - to return multiple attributes from the related records, what you can do is create an empty string, loop through the featureSet, and add records to the string. Here is a quick example of both:
var globalId = $feature.GlobalID;
var fset = Filter(FeatureSetByName($map,"RelatedFeatures"), 'RELATEFIELD = @globalId');
var returnString = "";
for (var f in fset) {
returnString += "Related Record # " + f.NUMBER_RELATED
returnString += TextFormatting.NewLine
returnString += f.TEXT_RELATED
returnString += TextFormatting.NewLine
returnString += "-----------------"
returnString += TextFormatting.NewLine
}
return returnString
Returns:
Thanks,
-Peter