|
POST
|
Hello all, I am trying to use Power Automate to make pulldata Javascript function work for offline collection by setting up an HTTP request. In my survey, the x, y values of geo-point are passed to the js function that gets the attribute values of the overlapping polygon. For offline use, this is the url that I used in the HTTP action to search the intersect polygon, and get its attributes. (x and y are from the survey, token is from another HTTP action requesting token). https://services1.arcgis.com/.../FeatureServer/0/query?f=json&geometry=x,y&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelIntersects&outFields=*&returnGeometry=false&returnCount=1&token=token In Parse Json output, I see the results (overlapping polygon's attributes) that I expected, but I eventually got the error message in the HTTP input to push the data to the feature layer but nothing happened. Parse Json output HTTP Input. The values I want to get are empty, and show 400 error message. ==> I don't see the error anymore but the attributes are not updated although it says 'success'. {"error":{"code":400,"message":"Cannot perform operation. Invalid operation parameters.","details":["'features' parameter is invalid","Invalid JSON primitive: ."]}} I just added email notification after Parse Json to check if I can get the values directly in the email body, and it seems empty. Did I miss any steps after Parse Json? Maybe that's why I see nothing in HTTP input? @IsmaelChivite , @JamesTedrick Is there any limitation in Power Automate to get the feature service query result in Json? I used the almost the same approach in Integromat and it worked out. Thank you. Kerry
... View more
03-08-2021
10:41 PM
|
0
|
0
|
905
|
|
POST
|
Thanks Phil! This should work for my scenario. Kerry
... View more
03-06-2021
11:15 AM
|
1
|
0
|
1020
|
|
POST
|
Hi @sallismael Thank you for the information. Earlier I tried using 'condition' action after the survey but it did not work for me. Without 'condition' the rest of flow worked but it does not run at all after I added 'condition' part. I typed 'Offline' directly in the value area. Do I miss something? Kerry
... View more
03-05-2021
11:28 AM
|
1
|
0
|
1957
|
|
POST
|
Hello all, I am trying to set up webhook in Power Automate that works when users select 'Offline' to the question called 'Online_offline'. 1. I tried condition module and the flow did not run at all. I used 'Question..' equal to 'Offline'. 2. I added condition directly under Survey123 setting, and the flow did not run either this time. Has anyone done applying condition in Power Automate successfully? Kerry
... View more
03-05-2021
10:22 AM
|
0
|
3
|
2003
|
|
POST
|
If those 1029 sites locations are permanent, you can prepare their x y location in csv and using pulldata to grab x y and send it to geopoint to create a new point. For users you may want them to select by region or city names. E.g. 1. Select region narrows down town names. 2. Town name narrows down campsite names. 3. When users select a camp site, it searches x y value from csv using pulldata and send xy to geopoint. Kerry
... View more
03-04-2021
11:37 PM
|
1
|
0
|
1290
|
|
POST
|
Hello all, I have a scenario that ran successfully in Integromat, and now I tried to make it work in Power Automate. In my scenario, an http request is sent to the 3rd party geocoder API, and it retrieves the city and address information, and post it back to the feature layer. I used 'pulldata('@property', 'token') to get the token information and used it in the update url (image below). When I ran the scenario, it says it ran successfully, but two fields above (locality/ address) are still empty. If I check the output status in Power Automate module, it says 'invalid token'. The input area shows the values I expected to see. I am aware that we can retrieve token through another http module by providing specific username and password, but I expect this survey is being shared with multiple users. So, I hope to keep using 'pulldata' within the survey to get the token information. Could you someone advise me if I missed anything for this setup?
... View more
03-04-2021
11:06 AM
|
0
|
3
|
1824
|
|
POST
|
Hello all, I created a survey that brings up different questions depending on what users answer to 'Are you in online or offline environment?'. It would be handy if there is a way that the survey can detect it and control questions directly from its status. Any experience or thoughts? Kerry
... View more
03-02-2021
04:23 PM
|
0
|
2
|
1116
|
|
POST
|
Thanks @Anonymous User ! It would be really handy when that functionality comes in Arcade and Field Maps. That may address some challenges with Survey123 (published with Connect) that any changes in url/syntax need to be made within xls form, not on AGO environment or feature layers/maps directly. Kerry
... View more
02-26-2021
08:35 AM
|
0
|
0
|
1544
|
|
POST
|
Hi @ColinLawrence I am interested in this topic. Is it possible to store the address in the field? also is it possible to use other geocoding api within Field Maps so that it does not consume credits? Kerry
... View more
02-25-2021
12:40 PM
|
0
|
2
|
2505
|
|
POST
|
Hello all, I am curious if upcoming 'calculation' or 'attribute rule' allows user to communicate through http services. I have a survey123 form that uses pulldata @ javascript and @ json to get geocoding results from the 3rd party API (like sending a request through url outside of Esri). Survey123 is great but it's not the best for offline use for my workflow at this moment, so I want to see what's possible with Field Maps functionalities. Kerry
... View more
02-25-2021
12:15 PM
|
1
|
3
|
1618
|
|
POST
|
That's great! One more tip, after you publish the survey, you can change the type of two additional question to 'hidden' (I assume you used 'text'), the re-publish it. Then they won't be displayed for end users. Kerry
... View more
02-25-2021
10:47 AM
|
0
|
1
|
4419
|
|
POST
|
@JamesTedrick As work around, I used pulldata @javascript function to send a request to the geocoder server and could extract the address (I referenced open weather api sample code); I assume this does not charge any credits? however I am not sure if it can be used during offline. This app will be used in offline areas most. Kerry
... View more
02-25-2021
10:13 AM
|
0
|
0
|
1846
|
|
POST
|
Hi @JamesTedrick I was testing it from both Connect and also mobile apps after publishing the survey. In the background, I set up http request for reverse geocoding as well so that I could test in the offline mode, too. I will be happy to share my form if you can take a look. Thank you. Kerry
... View more
02-25-2021
10:04 AM
|
0
|
0
|
1848
|
|
POST
|
If you set Esri Field Type as null, it does not create additional fields in the actual dataset, but does work/exist within only Survey123 form. It's tricky to make both field form and web form works.. Hope you can find a solution! I am in Canada so I will be interesting how it works eventually. 🙂 Kerry
... View more
02-25-2021
09:52 AM
|
0
|
3
|
4423
|
|
POST
|
Hello, I am using reverse geocoding function with the geocoder outside of Esri. However, I realized that my credits got really low (spent over 40) for the last couple of days while I was testing reverse geocoding. I thought reverse geocoding won't charge any credits unless I am using Esri geocoder. Can someone explain me where all charges come from? I did test less than 30 times, and the status says I used it for over 1,000 locations. I also set up this using Integromat so that I can be used during offline too. This is my current reverse geocoding syntax that I am using. I created it based on Survey123 for ArcGIS: Advanced Topics. https://www.esri.com/content/dam/esrisites/en-us/about/events/media/UC-2019/technical-workshops/tw-6328-1002.pdf pulldata("@geopoint", ${geometry}, "reversegeocode.properties.fullAddress", "https://....?",${pointLongLat}) I need to put "point=x,y" at the end as a parameter so I calculated it as 'pointLongLat'.Do I still include anything that uses Esri geocoder?
... View more
02-24-2021
08:12 PM
|
1
|
3
|
1939
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2020 02:08 PM | |
| 1 | 04-22-2021 11:02 PM | |
| 1 | 01-15-2024 05:16 PM | |
| 1 | 04-18-2024 08:25 AM | |
| 2 | 03-01-2024 11:09 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-15-2024
12:33 AM
|