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 / Power Automate / Appending a query stri...
Power Automate
Suggested Answer

Appending a query string to an API endpoint fails

(2) ShareShare
ReportReport
Posted on by 6
I'm attempting to append a query string created in a previous action to an API endpoint in a custom connector. However, when the call is made, the '?', '=', and '&' appear to become encoded and the call returns an error. I'm using this method as the API call requires parameter key names that include a unique value (a student's id). So, depending on the course the grades are being updated for, I would need to select the parameter key names for those specific students. To test if the connector works, I set parameter key names for two students in the custom connector which does work as intended. However, since I would need to create parameter key names for every student, this method is not feasible.
 
This is the API call which takes a parameter key name of 'grade_data[<student_id>][posted_grade] and a parameter value, which is the grade. The unencoded query string for students 1 and 2 with grades of 90 and 93, respectively, would look like the following example:
  • ?grade_data[1][posted_grade]=90&grade_data[2][posted_grade]=93
If I set the parameter key names in the custom connector, the following is shown in the request message (which works):
  • ?grade_data%5B1%5D%5Bposted_grade%5D=90&grade_data%5B2%5D%5Bposted_grade%5D=93
If I append a query string to the API endpoint, the following is shown in the request message (which returns a 404 error):
  • %3Fgrade_data%5B1%5D%5Bposted_grade%5D%3D90%26grade_data%5B2%5D%5Bposted_grade%5D%3D93
My initial guess is that the custom connector is not treating the string as a query string, and so the reserved characters are not being treated as such. Is there a way to get around this?
 
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,978 Moderator on at
    Hi
     
    Being that it's your custom connector, its clearly doing something to encode
     
    If it was the standard HTTP you would have to encode it yourself.
     
    So I would have to see your Code, and your Connector Code (Definition etc)
     

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 > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard