function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Hema YejjuHema Yejju 

I'm not getting the below if block Successful for the conditions

Here in the below code ,I have 2 pick list fields(Customer_needs,need_Type__c )when i select need sub type as'Fund' or need subtype as Personal ...My account status field onthe record page  should be displayed as closed and thats working fine .
-->but the issue i'm facing here is i'm not getting account status as closed while im trying subtype as 'Sale' and Customer_needs == Null(selecting nothing in this field )

I dont know what went wrong here ..all label names and field names are crct..Please help me here...

if(he..Customer_needs == Null || cs.Customer_needs == ''){
if(he.need_Type__c == 'Connected'){
if(he.need_Sub_Type__c == 'Sale' || he.need_Sub_Type__c == 'Fund' || he.need_Sub_Type__c  == 'Personal'){
he.Status = GlobalConstants.STATUS_CLOSED;
system.debug('he.status = ' +he.Status);
}
}}