When building a FeatureSet in the data expression I am trying to use geometry but it says that Geometry is not a valid function for some reason? Like umm its right there dude.

Here is the code. I found a post showing this but so weird on the function.
var Dict = {
'fields': [{ 'name': 'Project', 'type': 'esriFieldTypeString' },
{ 'name': 'PointID', 'type': 'esriFieldTypeString' },
{ 'name': 'StreamName', 'type': 'esriFieldTypeString' },
{ 'name': 'PointType', 'type': 'esriFieldTypeString' },
{ 'name': 'OrderCode', 'type': 'esriFieldTypeString' },
{ 'name': 'EvalStatus', 'type': 'esriFieldTypeString' },
{ 'name': 'Trip', 'type': 'esriFieldTypeString' },
{ 'name': 'CountUnresolved', 'type': 'esriFieldTypeString' }],
'geometryType': 'esriGeometryPoint',
'features': []};
var index = 0;
var sql2 = "ResponseType = 'Log an issue' And (Resolved IS NULL Or Resolved = 'No')"
var tbl2All = Filter(FeatureSetByPortalItem(Portal(p),'713e3aaef9674e3493a64347d333b618',10,['PointID','ResponseType','Resolved'],geometry = false), sql2);
var tbl2text = ""
for (var i in tbl2All) {
tbl2text = tbl2text + ", " + i.PointID
}
var isUnresolved = ''
//Cycles through each record in the input table
for (var f in tbl) {
if (Find(f.PointID, tbl2text) > 0) {
isUnresolved = 'Yes'
}
else {
isUnresolved = 'No'
}
//This section writes values from tbl into output table and then fills the variable fields
Dict.features[index] = {
'attributes': {
'Project': f.Project,
'PointID': f.PointID,
'StreamName': f.StreamName,
'PointType': f.PointType,
'OrderCode': f.OrderCode,
'EvalStatus': f.EvalStatus,
'Trip': f.Trip,
'CountUnresolved': isUnresolved
},
'geometry': Geometry(f)};
++index;
}
return FeatureSet(Text(Dict));thanks for any info