fields = "*"
where = "objectid > 0"
gdbfc = os.path.join(localgdb,"intercept_" + layerName +"_"+ str(dtstr))
query = "/query?where={}&outFields={}&returnGeometry=true&f=json&token={}".format(where, fields, token)
fsURL = baseURL + layerID + query
fs = arcpy.FeatureSet()
fs.load(fsURL)
arcpy.CopyFeatures_management(fs, gdbfc)
the resulting feature class doesn't contain any globalid values, (doesnt' even contain the field) but I can see them in the featureSet. Any pointers on how to include the original globalid values? They are used for relationships and are important.
Copy features and Feature Class to Feature Class—Conversion toolbox | ArcGIS Desktop are your options.
It must have something with your use of a featureset.
The environment setting
Preserve Global IDs (Environment setting)—Geoprocessing | ArcGIS Desktop is supported by the FeatureClassToFeatureClass tool, but doesn't appear to be by Copy Features.
Check that environment setting for other options that might be useful if you need copy features