Skip to main content

Notifications

Copilot Studio - General
Unanswered

Http Request GET query param

Posted on by 33
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 137 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

September 2024 Newsletter…

September 2024 Community Newsletter…

Community Update Sept 16…

Power Platform Community Update…

Tuesday Tip #2 Global Search…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 141,651

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,493

Leaderboard