Hello,
I am currently trying to pull data from a hosted feature layer into another hosted feature layer using the FeatureSetByPortalItem function. I run the formula as:
var p = Portal("https://********.maps.arcgis.com");
var features = FeatureSetByPortalItem(p, "itemid",layerid);
However when I run it it gives me the error:
Invalid expression.
Error on line 2.
Object not found "layer name"
I was able to get the item id from the layer page in my organizations AGOL page and grabbed the layer id from copying the features path (in the table of contents) in ArcGIS Pro and then opening it in notepad on my desktop.
Not too sure where it is I am going wrong here.
Any help would be appreciated!