Recibí ayuda en el ESRI UC para comenzar a construir un flujo de trabajo en Power Automate que se supone debe actualizar automáticamente campos dentro de entidades de puntos y líneas existentes que intersectan con las entidades de polígonos recién creadas. He estado experimentando con ello y aunque mi flujo actual indica que se está ejecutando con éxito, cuando llega a la parte donde debería actualizar las entidades de puntos y líneas, omite esta parte. Soy nuevo en todo esto y agradecería consejos o sugerencias.<\/P>
<\/span><\/P>En la imagen anterior, el lado izquierdo es para actualizar líneas y el lado derecho es para actualizar puntos. Estaba probando si el paso adicional de consulta era útil o no. Dado que ni las líneas ni los puntos se actualizaron, ninguna opción funcionó.<\/P><\/span><\/P> <\/P><\/span><\/P><\/span><\/P> <\/P><\/span><\/P> <\/P>Y aquí es donde veo que ha omitido actualizar cualquier punto:<\/P><\/span><\/P> <\/P> <\/P> <\/P> <\/
If I had to guess, the for each action is being provided an empty array [], so it is skipping the action since there are no items to iterate over. My suggestion is to look at the 'outputs' of one of your flow attempts:
Thank you, @CalvinHarmin . Good suggestion. I added email notification to check what was happening with my Fetch updates action, and indeed it is not actually pulling info of new features. I'll report back if I make any progress!
@IngridHogle Looking at the flow you can and your comments Likely that the `Get data from feature layer` action is not returning any results. The geometry combined with the Where clause is probably the culprit.
You can open a run that was successful in Power automate and click on the action. On the left hand pane you should see Show Raw outputs (or inputs) this should show you the JSON output of your query.
From Show raw inputs you can copy the parameters and run the query directly on the REST Endpoint to see what is wrong with it and what fixes it. You can see ArcGIS REST API documentation for the Query endpoint here: Query (Feature Service/Layer) | ArcGIS REST APIs | Esri Developer for more details. the `Get data from feature layer uses this endpoint behind the scenes. Hope you find the issue and the solution. The flow logic looks good to me.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.