J’essaie de suivre les instructions du lien ci-dessous pour mettre automatiquement à jour une couche après l’envoi d’une enquête dans Survey123
https://resources.esri.ca/getting-technical/webhooks-microsoft-flow-and-the-arcgis-rest-api-automating-your-web-gis
Cependant, je bloque à la dernière étape et je reçois ce message d’erreur
L’exécution de l’action de modèle « While_Loop » a échoué : le résultat de l’évaluation de l’expression « foreach » '@{body('Parse_Query_JSON')?['objectIds']}' est de type « String ». Le résultat doit être un tableau valide.
Quelqu’un pourrait-il m’aider à comprendre ce que je fais de travers ?
Hi Paul Sweeney,
I expect it is because when Flow autogenerated the schema when you uploaded a sample json, it takes a guess at the type of data (many times erroneously). All you need to do in your schema is delete the type or change it to integer.
Hi thanks for you response (I really should have posted an update here) i had eventually figured this out and this was exactly what i did i removed the types and it worked perfectly. This is a really useful tool for us now.
Hi Paul,
I'm having a similar problem with this same workflow. Would you mind showing me your HTTP query operation and following Parse JSON connector?
I'm a bit lost and getting the same error, so any help is appreciated....
Hi Chris
See below. you only need a header as per my screen shot then a post
then for each object id in th e query you need to apply the edit as per below
FYI i have migrated to integromat as i find it more user friendly.
you need to look at the json in your Body , you have a comma after your colon Object ID:, you need to remove it.
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.