You need to sign in to do that
Don't have an account?
GMASJ
How to query from a comma separated value in soql
Hi,
In custom object Popup_Message__c there is a custom field Profile__c which stores comma seprated values now I need a extract a particular value using a soql
example : In Profile__c is the value is stored as A,B,C
I want to extract a find if Profile__c = C exit or not. Please suggest me how to extract.
select Profile__c from Popup_Message__c where Profile__c = 'C' this is not returning
Thanks
SUD
In custom object Popup_Message__c there is a custom field Profile__c which stores comma seprated values now I need a extract a particular value using a soql
example : In Profile__c is the value is stored as A,B,C
I want to extract a find if Profile__c = C exit or not. Please suggest me how to extract.
select Profile__c from Popup_Message__c where Profile__c = 'C' this is not returning
Thanks
SUD
In your query you have mentioned Active_Status__c = "Active" In double Quotes can you please replace like this Active_Status__c = 'Active'
You have to define in Signle quotes for String variable. Let me know any help required
Thanks &Regards
Madhukar_Heptarc
All Answers
I have got your requirement. Can you please try this Query.
Please let me know if it useful / Any help required.
Thanks & Regards
Madhukar_Heptarc
I have got your requirement. Can you please try this Query.
You can Refer Below link which explains how to use LIKE funtion :
https://developer.salesforce.com/docs/atlas.en-us.218.0.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_comparisonoperators.htm
Please let me know if it is useful / Any further help required.
Thanks & Regards
Madhukar_Heptarc
I am getting below error in the line please suggest me how to fix.
Thanks
Can you try above query once
(Or)
can you please try query like this Please let me know if it is useful / Any help required.
Thanks & Regards
Madhukar_Heptarc
In your query you have mentioned Active_Status__c = "Active" In double Quotes can you please replace like this Active_Status__c = 'Active'
You have to define in Signle quotes for String variable. Let me know any help required
Thanks &Regards
Madhukar_Heptarc