You need to sign in to do that
Don't have an account?
SAI CHARAN MADUGULA
I want to add or || in this condition
Hi,
I need to add or || condition by adding this account record types.In this code i have marked as Bold there i have to add this two Account Record Type can anyone please help me out for this.
if(!ocrIdSet.isEmpty()){
List<OCR_Pharmacy__c> ocrAccList = [
Select Id,Address__c
, City__c
, State_Province__c
, Zip_Postal_Code__c
, Country__c
, (Select Id
, Distance_to_Service_Facility__c
from Accounts__r
where (RecordType.Name = 'LTC Prospect Facility'
)
)
from OCR_Pharmacy__c where Id IN : ocrIdSet
];
Thanks,
sai charan
I need to add or || condition by adding this account record types.In this code i have marked as Bold there i have to add this two Account Record Type can anyone please help me out for this.
- 'LTC Customer Facility'
- 'LTC Former Facility'
if(!ocrIdSet.isEmpty()){
List<OCR_Pharmacy__c> ocrAccList = [
Select Id,Address__c
, City__c
, State_Province__c
, Zip_Postal_Code__c
, Country__c
, (Select Id
, Distance_to_Service_Facility__c
from Accounts__r
where (RecordType.Name = 'LTC Prospect Facility'
)
)
from OCR_Pharmacy__c where Id IN : ocrIdSet
];
Thanks,
sai charan
Use Below updated Code,
Hope this will help you..
Mark Best ANSWER if its work for you.
Thanks
karthik
All Answers
Use Below updated Code,
Hope this will help you..
Mark Best ANSWER if its work for you.
Thanks
karthik
Thanks
karthik