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
Super User
Super User

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (2,233)