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
15
Views
2
Comments
edited Jun 8, 2022 12:11PM in General Technical Discussions 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!