Skip to main content

Notifications

Power Apps - Connector Development
Unanswered

Custom Connector URL encodes my GET request when not intended

Posted on 22 Nov 2024 13:06:02 by 2
   Hi-- I have a GET Url request that should look like this 
 
However, when I encode the parameter, the platform is automatically converts (url encodes) the request it to this:
 
 
What is a good work around for this?
I tried changing the swagger and code part of the custom connector but to no avail. The custom connector works okay if timeInterval is ommited.
Thank you and let me know if you are able to solve!
Donna
Categories:
  • DB-23100833-0 Profile Picture
    DB-23100833-0 2 on 25 Nov 2024 at 10:43:02
    Custom Connector URL encodes my GET request when not intended
    @MichaelFP Thank you for taking the time to respond. However, my issue is specifically with the timeInterval object.
     
    If I exclude the timeInterval, it works perfectly. However, when I add timeInterval, I get a 400 error. When I checked, it URL encodes the request to (timeRange%3A(start%3A3A1704067200000%2Cend%3A1706745599999))
     
    I found a solution at stack: https://stackoverflow.com/questions/54563917/linkedin-v2-api-error-unpermitted-fields-present-in-parameter-when-including-t that suggestss that the time interval part should not be url encoded by the platform. So I wanted to see if there's a chance to see if it works if I make the request without an url encoded timeInterval object.
     
    I was wondering if there is a workaround for that.
    Thank you!
    Donna
  • MichaelFP Profile Picture
    MichaelFP 1,442 on 23 Nov 2024 at 14:35:45
    Custom Connector URL encodes my GET request when not intended
    What is the error that appears. Because : must be encoded because is part of url (http: or https:) that separate the protocol from the authority of the url. i don't see any issue on that.

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

October 2024 Newsletter…

October 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #4 How to Conntact Support…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,111

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,795

Leaderboard

Featured topics