Convert to XLSX command - setting outfields eliminate shape and objectid
Hi all,
I have a custom command set for some parcels that will appear as an option for only parcels results. This is set on the “feature actions” menu for a “sublayer extension” within the map's “layer extensions”
It is titled “Export to XLSX for Mailout” . The intent is to export only fields needed for mailing to parcel owners to an excel spreadsheet.
the custom command set is this:
[
{
"name": "results.convert-to-xlsx",
"arguments": {
"useFormattedValues": false,
"outFields": [
"PIN",
"OWNAM1",
"STREET",
"CITY",
"STATE",
"ZIP5"
],
"includeHeaderRow": true
}
},
"system.download-file"
]
The fields are limited to the fields shown above in the export but the ObjectID and the geometry fields still appear in the .xlsx export. see image below:

What can be done so that objectid and geometry are not exported? I tried a few other arguments but no luck.
Thanks,
Carmen
-
To export without the geometry field, you can setthe geometryFormat argument to “NONE”.
"geometryFormat":"NONE"I do not have advice on removing the OID field unfortunately.
1 -
Thank you Brandon, this worked for me. I can live with the ObjectID in the spreadsheet because people will understand it as some sort of ID. Geometry field would confuse people.
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
2 commentaires