cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Acropolis9064
Frequent Visitor

HTTP

Hi,

 

I am trying to create a flow using HTTP and triggered from a canvass app.

 

Using GET and a constructed URL pulling through variables from the canvass, which appears to be put together correctly, but when it runs it fails with a 301 status error. If I look at the flow run and copy the URL from it and paste it into a browser I get the response back I am expecting, so happy that seems right?

 

The error is:

"<head><title>Document Moved</title></head>
<body><h1>Object Moved</h1>This document may be found <a HREF="https://webapps.bgs.ac.uk/data/webservices/CoordConvert_LL_BNG.cfc?method=LatLongToBNG&amp;lat=51.76...">here</a></body>"

 

Flow is

Acropolis9064_0-1631634901996.pngAcropolis9064_1-1631634917293.png

 

Details are from here: Coordinate converter | British Geological Survey (BGS)

 

Sure it's probably something simple I've done wrong but I can't figure it out.

1 REPLY 1
ekarim2020
Community Champion
Community Champion

Try specifying the content-type in the Headers:

ekarim2020_0-1631661579013.png

 

 

URI:
https://webapps.bgs.ac.uk/data/webservices/CoordConvert_LL_BNG.cfc?method=BNGtoLatLng&easting=429157&northing=623009

content-type: 
application/json;charset=UTF-8

 

 

Here is the output from a working example:

ekarim2020_2-1631661695594.png

{
  "DEGMINSECLNG": {
    "DEGREES": -1,
    "SECONDS": 24.028476096768,
    "MINUTES": 32
  },
  "EASTING": 429157,
  "LONGITUDE": -1.54000791002688,
  "NORTHING": 623009,
  "DEGMINSECLAT": {
    "DEGREES": 55,
    "SECONDS": 59.99859710664,
    "MINUTES": 29
  },
  "LATITUDE": 55.4999996103074
}

Ellis


____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,827)