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
Ad_InfosysAd_Infosys 

Return multiple variables

I have requirement to return an SObject and two variables in a web service. How do I cater to this problem.
SuperfellSuperfell
return an instance of an apex class. see the docs.
Ad_InfosysAd_Infosys
Thanks Simon,
 
I did it as directed.
 
Success.
 
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.