• Yashasvi D
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
Hi ,

I am unable to complete testclass for PricebookEntry Object, which is failing because i need to populate PricebookEntry's ProductCode field(not writable field) in my test class. 
Condition in main class is :- "select id from PricebookEntry where productcode =:Productname"

I also checked with @isTest(seeAllData=True) in my test class. but no improvement.

Can anyone please help me on the above issue.

Thanks!!

KR,
Yash's.