Hi nice explanation..really useful .. Please provide sample code for how to map json format field with salesforce api fields... And how Salesforce selectively send few parameters of the response rather than all response to the third party by using wrapper class?
The soql written returned a list of accounts. To get the results of a subquery i.e. to get contacts related to a specific account (as it is parent to child soql), he picked up the first account in the list at 0th index with acclist[0] , then accessed the related contacts to that account with dot operator and then using the 'contacts' child relationship name. You can write acclist.contacts if the query was assigned to a single Account variable along with LIMIT 1 clause.
Thanks for the clear explanation.
Nicely Explained.
A concept cleared of mine.
Thanks
This was what needed to me rn. Wrapper class concept can’t be more clear than this. Thanks a lot.
Glad you liked it, feel free to ping me on linkdin for any questions :)
Hi very nice explanation tq .
Keep watching Kalpana :)
Hi Mohit..could you please help me with report type concept..i have little bit confusion on that.
feel free to call me at 9718872795
Hi nice explanation..really useful ..
Please provide sample code for how to map json format field with salesforce api fields...
And how Salesforce selectively send few parameters of the response rather than all response to the third party by using wrapper class?
Thanks Divya, Please ping me on linkdin, I Will surely provide :)
very nice can you please send me the sample code for how to do mapping with the (External Api json format fields with salesforce Api fileds )
Sure, I Will surely add that.
Why you are writing acclist[0].contacts/opp/cases
Instead acclist.contacts only
The soql written returned a list of accounts. To get the results of a subquery i.e. to get contacts related to a specific account (as it is parent to child soql), he picked up the first account in the list at 0th index with acclist[0] , then accessed the related contacts to that account with dot operator and then using the 'contacts' child relationship name.
You can write acclist.contacts if the query was assigned to a single Account variable along with LIMIT 1 clause.