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

Enhancing Business Efficiency: Professional Salesforce Integration Services

Blog in

Salesforce integration services aim to enable seamless connections between Salesforce solutions and your other business-critical systems. In today's fast-paced digital landscape, businesses strive to optimize their operations, maximize productivity,…

Popular Salesforce Videos