You need to sign in to do that
Don't have an account?
SFDC BUG
Code coverage 75% to 100%
Hi Guys
Need to improve my code coverage of my trigger 75% to 100%
Need to improve my code coverage of my trigger 75% to 100%
trigger DocumentAttached on Purchase_Order__c (before insert , before update) { for(Purchase_Order__c tsk : Trigger.new){ Attachment[] attList = [select id, name, body from Attachment where ParentId = :Trigger.new[0].id]; if(attList.size() > 0) { tsk.PO_Uploaded__c =true; } } }
To write a test class here is the link using which you can write the test class
https://cloudyabhi.blogspot.com/2013/10/salesforce-test-class-basics.html
Let us know if this will help you