I would like my trigger to execute only if it belongs to a particualr record tye and has a true value for a checkbox field. I am not sure what the exact syntax should be checking both the conditions simultaneously. Can anyone please help?
I'm not entirely sure if you want the trigger to fire when the RecordTypeId is a specific value or to fire when it is not a specific value. However to evaluate the checkbox value in apex trigger use this-
(s.Really_Big_Deal__c == true )
where 'Really_Big_Deal__c' is the checkbox field name.
I'm not entirely sure if you want the trigger to fire when the RecordTypeId is a specific value or to fire when it is not a specific value.
However to evaluate the checkbox value in apex trigger use this-
(s.Really_Big_Deal__c == true )
where 'Really_Big_Deal__c' is the checkbox field name.
Hope it helps.
Thanks for replying. I am trying to fire the trigger if it is a specific value of the record type.
Shivani