I am trying to create a Data Expression within an AGO Dashboard (current dashboard, not classic) serial chart and I am having trouble getting a layer so I cna build an expression around it. I have seen numerous examples using the following example:
// Represents the ArcGIS Online portal instancevar
agol = Portal("https://www.arcgis.com");
// references a layer with its ID from a specified portal instancevar
layer = FeatureSetByPortalItem(agol, "7b1fb95ab77f40bf8aa09c8b59045449", 0, ["*"], false);
I have ran the expression using my own organizational account and item id but it returns NULL:

I believe the issue is, I do not have ArcGIS Portal, so I don't believe I can use the FeatureSetByPortalItem function.
I have tried some of the other functions (i.e. FeatureSetById, FeatureSetByName, etc) to get my feature service, but I keep getting errors. It does seem to recognize the map in my dashboard using '$map'. I have also tried '$datastore'.

I am at a bit of a loss. I have no idea how to get a feature service into my expression to I can build more expression. Any suggestions as to how to do this?