You need to sign in to do that
Don't have an account?
![nits nits](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Concurrent access to web service. Do for loops required
I have web service in SFDC which willbe accessed by UI in java by n number of users(concurrently)
global class Pipeline {
WebService static opportunity[] Apptaker(string adid, string Ftype, date Frmdt, date todt, string stype, string sorder) {
opportunity[] opp;
WebService static opportunity[] Apptaker(string adid, string Ftype, date Frmdt, date todt, string stype, string sorder) {
opportunity[] opp;
SOQL1
return opp;
}
There is only one SOQL1 in the code which will be executed.
Now for concurrent callouts to the API do I need to incorporate for loops.
In case for loop is placed, shall I see the error of governor limits in number of SOQL queries per code.
Apex Web Services are subject to the same max requests/max concurrent requests limits that the regular api is subject to (as detailed in the API docs)
Actually I was just wondering.
As in triggers for bulk processing we write
for(Account a=trigger.new)