Modify RESTMessageV2 setEndpoint length limit

erikj23
Giga Contributor

GET calls up to a certain length aren't hitting my API, if I reduce the length of the total endpoint the call goes through. However, I need to be able to make GET calls with long query strings to external API. How can I increase the length limit for these calls?

1 REPLY 1

erikj23
Giga Contributor

I managed to resolve the issue.

 

The problem was due to encoding. Values passed to sysparm_ were BASE64 encoded which, by default, is not URL safe. Using encodeURIComponent() on the value before making the API call resolved the issue.