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
SurpriseSurprise 

Callout with future

Hi ,

 

Sync data between two salesforce orgs.This is what I am trying to do and we are looking for real time integration between the two salesforce org.

 

Steps:-

 

Trigger is going to call apex class future method which in turn will make a callout to webservice developed in apex in another salesforce org.

 

Now the problem is that  I can only make ten callouts from the future method.Now if the user on the opportrunity object update 10 records then webserice called in the future method will also run ten time and  on the 11th time the user will get error as number of callout allowed are over.

 

So what can I do to get rid of this limitation ? I was thinking of

 

Instead of using soap if I use rest service.Will it have same limitations applicable to it or I can send as many records I want  through the rest services without worying about the future limitations

 

Can somebody advise?

 

Thanks,

Surprise