function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
afindieafindie 

S-control Query String Help

Hi I am having some issue passing a long query string over to a third services provider from salesforce.
Due to the limitation of query string size, sometimes it fail to create a connection.
Does anyone out there have a way to solve this issue?
Apex code? Encoding value?
 
thanks
 
canonwcanonw
When generating the SOQL, make sure it is within the size limit.  Recreate additional SOQL to avoid the size limit.

I hope there's a faster way.  But that's the only practical way to resolve size limit. 
werewolfwerewolf
Are you referring to a URL querystring or a SOQL query?
afindieafindie

i was refering to an url query string.

here is what i did, i wrote an apex page for it to carry all the required value, then submit them as a form.

that is the best way i can come up with, let me know if you have better.

werewolfwerewolf
The maximum URL size is 4000 characters -- you're exceeding that limit?  If you need to default a large number of values then a Visualforce page is indeed the right way to go.