cancel
Showing results for 
Search instead for 
Did you mean: 

How to send '>' symbol on query parameter ?

SOLVED
mpw83
Contributor

How to send '>' symbol on query parameter ?

I am sending the following type of SQL as a parameter in Rest request

 

SELECT+Name+FROM+dayJob+WHERE+JobType+=+'topTwo'+AND+CreatedDate+>+2020-02-11T02:30:00.00Z

But I am getting `Illegal character in query` exception for the symbol ">" in "CreatedDate+>+2020-02-11T02:30:00.00Z" 

Also, I am sure this SOQL query is correct as well. I am only getting this issue when I am sending the request through the ReadyAPI. 

Is there are any way to solve this issue? Thanks 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
nmrao
Community Hero

Re: How to send '>' symbol on query parameter ?

Hmm..
Please check if the below link helps!
https://www.w3schools.com/tags/ref_urlencode.asp


Regards,
Rao.

View solution in original post

4 REPLIES 4
nmrao
Community Hero

Re: How to send '>' symbol on query parameter ?

Not experienced with those.
But you may try the below and see if any of these works or not.
1. >
2. \>


Regards,
Rao.
mpw83
Contributor

Re: How to send '>' symbol on query parameter ?

@nmrao Thanks for your reply, 

Didn't work, 

for > -- I can see its converting and sending the '>' symbol but still getting `Illegal character in query ` error 

for \> -- also getting `Illegal character in query` error 

 

nmrao
Community Hero

Re: How to send '>' symbol on query parameter ?

Hmm..
Please check if the below link helps!
https://www.w3schools.com/tags/ref_urlencode.asp


Regards,
Rao.

View solution in original post

mpw83
Contributor

Re: How to send '>' symbol on query parameter ?

Hi @nmrao , yes ASCII Encoding works. Thanks so much

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors