You need to sign in to do that
Don't have an account?
Mayur Shinde
Hello Team, I Want Write Trigger Could you pls Help Me how to write this Use Case Pls i am begginer..
Practice Use Case:
1.create a checkbox 'create contact' on Account.
2.create a trigger which handles events like account insert, update, delete.
3.Trigger will be responsible for creating contact with defined set of fields. It will be responsible to keep key information of contact updated from Account. Hence Account will still be treated as master for key information.
1.create a checkbox 'create contact' on Account.
2.create a trigger which handles events like account insert, update, delete.
3.Trigger will be responsible for creating contact with defined set of fields. It will be responsible to keep key information of contact updated from Account. Hence Account will still be treated as master for key information.
Did you mean, when user selects create Account checkbox and save the record, a trigger should and a related contact record should get created?
Do you really want this for account update and delete? Because this will fire the trigger every time the account is updated and does not make a use case to create a contact on Account delete.
but anyways, here it is :
Hope this helps.
Cheers.
All Answers
Did you mean, when user selects create Account checkbox and save the record, a trigger should and a related contact record should get created?
Do you really want this for account update and delete? Because this will fire the trigger every time the account is updated and does not make a use case to create a contact on Account delete.
but anyways, here it is :
Hope this helps.
Cheers.
I would also prefer to use process builder instead of jumping directly to triggers. As best practice, one should try to achieve maximum with out of the box Point and click functionality from SF.
Cheers.
hi dev_arya...
Use case: i have to create a checkbox on Account object.
When someone clicks that checkbox as true corresponding Contact should be created.
Now once someone has marked it as true no one can change it again.
1. Any time someone changes details on Account record corresponding contact information should be updated/
2. If Account is deleted corresponding contact should be deleted
3. If Account is undeleted corresponding contact should be undeleted
colud you pls how to write this hanlder class and trigger Test class pls help its very urgent.........
+++++++++++++++++++Handler Class++++++++++++++++++++
++++++++++++++++++++++++++++++trigger++++++++++++++++++++++++++++++++++++
pls help to test class for best practice.............
I didn't get time to test your code but had a quick look. My observations:
Cheers,
Dev