Skip to main content

Notifications

Copilot Studio - General
Unanswered

Http Request GET query param

(1) ShareShare
ReportReport
Posted on by
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
 
 
  • Http Request GET query param
    @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
  • Mahesh Chintha Profile Picture
    Mahesh Chintha 158 on at
    Http Request GET query param
    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

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard