You need to sign in to do that
Don't have an account?
Lakshmi S
write a batch class for to delete all contacts of accounts where account field: active__c="yes"
Hi Team,
Write a batch class for to delete all contacts of accounts where Account field : active__c="yes" ?
Please give me the reply to above scenario....
Regards
Lakshmi
Write a batch class for to delete all contacts of accounts where Account field : active__c="yes" ?
Please give me the reply to above scenario....
Regards
Lakshmi
If you want to delete all Account then try below code
Let us know if this will help you
All Answers
Thanks for your reply.
I have doubt on this scenario.
Delete all contacts of accounts which are active means - delete all contacts related to accounts or delete all accounts related to accounts which are active.
If you want to delete all Account then try below code
Let us know if this will help you
Thanks for your reply.
My doubt is -- Delete all Contacts of Accounts.
query for delete all contacts of accounts.
Yes in above example first Batch is deleteing all contacts of account where active ='Yes'.
Let us know if you need more detail
Thanks for your reply.
How to write test class for rollup summary trigger (100% code coverage)?
Trigger: Test Class
---------------
my code covered only 88% code coverage, How to cover 100% code coverage.
Regards
Lakshmi
write a batch class for to delete all contacts of accounts where account field: active__c="yes"
write a batch class in which the contacts of all the accounts should be only 2.if more than 2 then it bocomes 2, or if less then it becomes2???????