You need to sign in to do that
Don't have an account?
sainath .chalamcherla
hi SFDC team, Apex triggers
My Trigger scenario; Take two custom objects, okati master okati detail, when ever master email field updated all its detail records having email as empty should get updated with masters email.
Error : expecting a right parentheses, found 'RiskRel_mail__c' at line 10 column 7
Risk Object(Master)
RiskRelationship(child)
Risk Object(Master)
RiskRelationship(child)
trigger UpdateRelationship on Risk__c (After Update) { set<Id> riskidtoquery = new set<Id>(); for(Risk__c R: Trigger.new) { riskidtoquery .add(R.Id); } List<RiskRelationship__c> relationship = [select Id,RiskRel_mail__c from RiskRelationship__c where Risk__c IN:riskidtoquery]; for(RiskRelationship__c rr : relationship) { If(rr. RiskRel_mail__c =='' )( ERROR THROWING LINE) { rr.RiskRel_mail__c = riskidtoquery.Risk_mail__c } } Update rr; }
Thanks and Regards,
sainath
sainath
use below line thanks
let me inform if it helps you
Verify if there is a space in the below lines
riskidtoquery .add(R.Id);
rr. RiskRel_mail__c ==''
Regards,
Jigna
rr.RiskRel_mail__c == null