Skip to main content

Add/Append attribute to Feature Set?

Comments

1 comment

  • Tom Neer

    To append attributes use an Evaluate Activity with something like this example we use for geocoding a spreadsheet. Then you can set your values.

    =$fsGeocodes.featureSet.fields=$spreadsheetToFeatureSet.result[0].fields.concat([ { name: "X_COORD", alias: "X_COORD", type: "esriFieldTypeDouble" }, { name: "Y_COORD", alias: "Y_COORD", type: "esriFieldTypeDouble" }, { name: "CONFIDENCE", alias: "CONFIDENCE", type: "esriFieldTypeString", length: 255 }, { name: "BOTTLER_ID", alias: "BOTTLER_ID", type: "esriFieldTypeString", length: 255 }, { name: "BOTTLER", alias: "BOTTLER", type: "esriFieldTypeString", length: 255 }, { name: "TERRITORY_ID", alias: "TERRITORY_ID", type: "esriFieldTypeString", length: 255 }, { name: "TERRITORY", alias: "TERRITORY", type: "esriFieldTypeString", length: 255 } ])

     

    0

Please sign in to leave a comment.