web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Http Request GET query...
Copilot Studio
Unanswered

Http Request GET query param

(1) ShareShare
ReportReport
Posted on by 2
Hi Experts,
 
In my Topic-HTTP Request,
I need to pass the value which i captured and set in the variable StrAddress to the below API as query param
 
Any thoughts or help, please see the screen shot for clarity
Getting error -
Error Message: HTTP request failed with status code 400 BadRequest. Error Code: HttpRequestFailure Conversation Id: fd7b0201-xxx-a9e2-3d9xx3ac23 Time (UTC): 2024-07-17T15:23:37.944Z
 
 
Categories:
I have the same question (0)
  • Mahesh Chintha Profile Picture
    158 on at
    Use Variable management -> Set a variable value and use 'Formula' to build the URL and then use it as a variable in the HTTP Request 
     
    "https://www2.moxxxxxxxxx.org/snowapi/mymxxxxxxxy.svc/SnowStreet2017?a=" & Topic.StrAddress
  • Anilal Gopinathan Profile Picture
    2 on at
    @mahesh,
     
    The approach started working, but getting error with url encoding, tried the below two options, still throwing error,
     
    generated url is -> ​https://www2.mxxxxxxx.org/snowapi/myxxxxx.svc/SnowStreet2017?a=9604​ Oak Ln—>     -- See the space in the url for the a-value

    Tried these below options, still throwing error,
     
    "https://www2.mxxxxxxx.org/snowapi/myxxxxx.svc/Snxxxxxxx2017?a=" & {encodeUriComponent(Topic.StrAddress)}
    "https://www2.mxxxxxxx.org/snowapi/myxxxxx.svc/Snoxxxxxxx2017?a=" & {=encodeUriComponent(Topic.StrAddress)}

    Error - Error Message: HTTP request failed with status code 400 BadRequest



    Update - fx = "https://www2.moxxxxxx.org/snowapi/myxxxxxxxx.svc/Snxxxxxxx2017?a=" & EncodeUrl(Topic.StrAddress)  -- this worked

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 531

#2
Vish WR Profile Picture

Vish WR 293

#3
Haque Profile Picture

Haque 208

Last 30 days Overall leaderboard