Select to view content in your preferred language

Survey123 pulldata with weather API

779
1
09-09-2020 07:42 AM
CN
by
Occasional Contributor

Trying to use pulldata function (just like open weather API) with Aeris weather API.  We are able to get a proper JSON response but can't seem to make it work in survey123.  Looking for some expert assistance. I have additional information to share (JSON format, js file, etc)  

Thanks,

Chad

0 Kudos
1 Reply
CN
by
Occasional Contributor

Figure out the issue....Had to go line for line with a return statement though until nothing was returned in the json response to figure out the issue.  xmlhttp.onreadystatechange was the issue. made adjustments  and got it to work. Now just need to adjust the pulldata jsonresponse values for each weather element to the Aeris api json return structure. 

Chad