Aller au contenu principal

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?

Commentaires

1 commentaire

  • 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

Vous devez vous connecter pour laisser un commentaire.