cancel
Showing results for 
Search instead for 
Did you mean: 

Rest GET Snap - Issue with passing special character through Next URL

lisat
New Contributor

I have a rest API that doesn't return links for paging.  In order to get the paging to work, I have to increment the page number until the API returns empty.  By itself, the paging works great.

The issue comes in when I add in the query parameter.  I need to pull records that have a dateTimeChanged in the past 90 days.  I've set up the query parameter and it works great on its own, however, the snap doesn't automatically pass the query parameter to the Next URL field.  I've tried to add the expression for the dateTimeChanged query parameter to the Next URL, but when I do that, it gives an error stating that there is an invalid character where the ">" character is.  If I copy and paste the url from the error message to Postman, the url is valid and returns results.  It seems like the snap itself is flagging this character as invalid.  Does anyone know how I can get around this?

lisat_0-1696874998992.png

lisat_1-1696875153982.png

 

1 REPLY 1

pmancevski
New Contributor III

Hi, 

Try with encapsulating whole URL string with encodeURIComponent() function or simply replace '>' with '%3E'.

Thanks,

Pero M.