Hello! I am trying to filter a featureset to only show features that contain carriage returns within a list element.
Here is what I have so far, which currently works in test BUT does not allow me to select within data expressions:
var portal = Portal('portal url')
var fs = FeatureSetByPortalItem(portal, "itemid", 0, ['STREETNAME'],false)
var carriageReturnPosition = Find("\r", fs);
if (carriageReturnPosition != -1) {
return Filter(fs, carriageReturnPosition)
} else {
return null
}
The error that I am getting is 'Unable to execute Arcade Script". What am I doing wrong? Is it possible to accomplish this?