You need to sign in to do that
Don't have an account?
Yuvraj Programmer
Unable to completed Trailhead task
I have created the account trigger to complete the trailhead task. But I'm facing following error:
Error:
Challenge Not yet complete... here's what's wrong:
Setting 'Match_Billing_Address__c' to false updated the records anyway. The trigger should only act when Match_Billing_Address__c is true.
Trigger code:
Anyone please guide me which part I missed? Thanks in advance.
Error:
Challenge Not yet complete... here's what's wrong:
Setting 'Match_Billing_Address__c' to false updated the records anyway. The trigger should only act when Match_Billing_Address__c is true.
Trigger code:
trigger AccountAddressTrigger on Account (before insert, before update) { for(Account a : Trigger.new){ If (a.Match_Billing_Address__c == true) { a.ShippingPostalCode = a.BillingPostalCode; } } }
Anyone please guide me which part I missed? Thanks in advance.
May I suggest you please refer the below link to reference.
- https://developer.salesforce.com/forums/?id=906F0000000BTouIAG
- https://success.salesforce.com/answers?id=906300000004454AAA
hope it helps.Please mark it as best answer if the information is informative.
Thanks
Rahul Kumar
Thanks for your reply. I visited the pages which you shared a link with me. Still I'm not able to pass the trailhead.
Please check with below link from the forums community which might help you with the above requirement.
- https://developer.salesforce.com/forums/?id=906F0000000BTouIAG
Please let us know if this helps.Thanks,
Nagendra
The link which you shared with me, already sent by Rahul Kumar. Still I'm not able to pass the trailhead.
Thanks.