Activity Forums Salesforce® Discussions Relationships data not return when on UnitTest

  • Surbhi

    Member
    June 15, 2016 at 1:23 pm

    Hi Ravi,

    I think when you are debugging the data, it shows only the Id of the child record. If you specifically debug the field PriceBookEntry.Product2Id you will get the value as expected. Otherwise you will have to use getsObject() method.

    Thanks

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos