I setup arcade expressions on a hosted feature layers pop up window to show data from a related table in it. While in Map Viewer Classic the data show ups fine. When I open collector or field maps the data is then missing. There is a 1:M relationship between the Hosted Feature Layer and the related table.
One of my sets of code is
var relatedrecords = OrderBy(FeatureSetByRelationshipName($feature,"WDM_DigitalEnt.DBO.issues_struct"), "IssueDate DES");
var cnt = Count(relatedrecords);
var relatedinfo = "";
if (cnt > 0) { var info = First(relatedrecords);
relatedinfo = Text(ToLocal(info.IssueDate), "MM/DD/Y");
}
return relatedinfo;