• #30990
    Forcetalks

    Why can we not query fields of type long text in Salesforce?

    Why can we not query fields of type long text in Salesforce?

     

    #31153
    Forcetalks

    Hi Shradha,

    In SOQL you simply cannot filter on long text areas, well the reason maybe Salesforce is doing some optimizations to prevent it from reaching the heap size.

    Hope this will help you.

    Thanks.

    #33678
    Salesforce | shariq shariq #1
    Forcetalks

    Hi Shraddha and Avinish,

    You can query records for long text type field but you can’t put these fields in WHERE clause.

    For more understanding the scenario, lets get deep into it, what is stopping those fields to be used in a where clause, answer is field’s length. Salesforce don’t allow the fields to be used in where clause if their length is greater than 255.

    Hope this helps.

    #33695
    Salesforce | Parul Parul #2
    Forcetalks

    Hi

    You can query records for long text type field but you can’t get these fields in WHERE clause because the fields to be used in where clause if their length is greater than 255 which give incorrect result.

     

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2018 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?