Skip to main content

We are creating dynamic conditions to query records. Thus, final SOQL query created for fetching records may contain more than 20k characters. So is there any SOQL Character limit in skuid. 

SOQL queries generated using Skuid Models are subject to the limits documented here:

https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_a…

Some of the key limits to be aware of:

1. The generated WHERE clause (which Skuid Model Conditions are translated to for Salesforce) may only be 4000 characters in length.
2. The total generated SOQL query may only be 20000 characters in length.

If you are running into this limit, I would strongly consider rethinking your approach to adding dynamic conditions. In particular, consider trying to use the “Result of Subquery” Condition type to limit a Model to records with a related record in another object.