[SalesForce] How to get the value of an Array of Objects present inside an Array of objects

Console.log

I want to access the Name in the Pricebook2 Object. How to do that in JavaScript? (Salesforce Lightning)

Best Answer

Here is the complete syntax:

topLevelArray[0].Pricebook2.Name

[] is an array accessor

. is an object property accessor