If you have a relationship set up between the two layers, you can use this syntax to get an attribute from the other layer
var related = FeatureSetByRelationshipName($feature, 'your relationship name');
if (Count(related) > 0) {
var record = First(related);
return record.theField;
}
If not, you can use this syntax to get the other feature.
var asset_id = $feature.GUID
var fs = FeatureSetByPortalItem(
Portal('yourPortal'),
'itemId',
0,
['*'],
false
);
var related = First(Filter(fs, "GlobalID = @asset_id"))
if(related != null) return related.theField