function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Return multiple variables

I have requirement to return an SObject and two variables in a web service. How do I cater to this problem.
return an instance of an apex class. see the docs.
Thanks Simon,
I did it as directed.
One more doubt on the same context we discussed earlier. The limit for number of SOQL is 100 in a method. Is this the number of SOQL executed for a particular scenerio in the code.
Eg if we have 145 queries in a code but at a time only 45 are executed. So the code is safe.
Is my interpretation correct.?
I developed a trigger code. In that limit is 20 SOQL. but I wrote more. but at a point of time less than 20 SOQLs executed. COde never blasted.