Zum Hauptinhalt gehen

After adding a feature to a feature service, I want to use the objectId returned in $addFeatures1.results to add an attachment to the newly created feature. How do I fetch the objectId from the results objectarray?

Kommentare

1 Kommentar

  • Stefan Schweigert

    Hi Jostein,

     

    You can use a For Each loop's 'pass' parameter to iterate through the items. For a single element, you can access the objectId using: $addfeatures1.results[0].objectId

     

    Thanks,

    Stefan

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.