Survey123 "Get current weather" in Microsoft Flow

520
6
Jump to solution
07-19-2019 08:49 AM
Highlighted
Occasional Contributor II

I wanted to know if there is a solution that is available to grab the lat/long of a Survey123 submission and populate it as a location for "Get Current Weather"? I tried this and was unsuccessful in accomplishing the attempted output. I believe their is a workflow in Integromat but I wanted to see if there was a workflow in MS Flow.

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Esri Frequent Contributor

Hi. You got it, almost! The MSN Get Weather Flow app wants you to pass first the latitude (Y) and then the logitude (X) separated by a space. Other than that, you got it right!  Below you have the full process step by step.  You can click on the animation to make it bigger.

View solution in original post

6 Replies
Highlighted
Esri Frequent Contributor

Hi. You got it, almost! The MSN Get Weather Flow app wants you to pass first the latitude (Y) and then the logitude (X) separated by a space. Other than that, you got it right!  Below you have the full process step by step.  You can click on the animation to make it bigger.

View solution in original post

Highlighted
Occasional Contributor II

Ismael,

Spot on for what I needed! Thank you very much.

-Eric Shreve

0 Kudos
Highlighted
New Contributor II

I can get this far in setting up the web hook to get the weather.  How do I get the weather attributes I need into the Survey123 table.  For example, I just want the temperature and conditions to auto populate when someone submits a survey.

Thanks,

Charles

Highlighted
New Contributor II

Good question. Was just wondering that myself.  I understand how to set up the Get Current Weather action with this thread, but how can I see that information in the survey record?

0 Kudos
Highlighted
New Contributor II

Hi Charles,

I am trying to accomplish the same action that you posted about setting up the web hook to get the capture the current weather condition on a survey. Did you got it to work? Do you have any suggestions on how to accomplish this task?

Thanks,

JB

0 Kudos
Highlighted
Esri Frequent Contributor

You can use the http action: Using the HTTP action to make requests with Microsoft Flow | Power Automate Blog  to hit the Update Features operation in the ArcGIS REST API: Update Features—ArcGIS REST API: Services Directory | ArcGIS for Developers 

Since you already know the feature layer and objectId of the feature created, you can use all that info to update the Survey123 record with the output from Get Weather.  Also remember that you can have the Microsoft Automate Webhook provide you with an ArcGIS token (needed if you plan to update a private feature layer). Simply add the User Info to the payload of the webhook from the Survey123 website.

0 Kudos