We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

ROQL order by length function

Received Response
11
Views
2
Comments

Summary:


Content (required):

Is there a ROQL equivalent to SQL's CHAR_LENGTH() function? I'm trying to write a simple query that would look something like the code snippet below, but not having any luck. I skimmed through the documentation, but couldn't find much on what functions ROQL supports. I've used length() function in Service Cloud analytics, but that does not work in ROQL object queries. Any insight would be appreciated!

Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

SELECT * FROM TABLE ORDER BY CHAR_LENGTH(FIELDNAME);

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!