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
amoldavskyamoldavsky 

Update global object from external HTTP request periodicly

Hey,

 

I have an objects in SF which I would like to update from an external (non SF) location with a periodic HTTP call. So basically, let's say I have a website www.mycoolsite.com and I have an object over the SF app that contains a numeric value X=10. I would like every day to make a single call (behind the scenes) from www.mycoolsite.com to a particular installation of my SF app and deduct 1 from X. How can I achieve this? is this even possible? sync or bulk API?

 

Thank you!

AmitSahuAmitSahu

You want to deduct the number form SF value, so you have to consume a webservice exposed to external apps.

 

You can create a global webservice class in SF and expose as webservice. Then have your external site consume this class and call them method in it to deduct the number from x.

 

You will need Partner WSDL as well to be used by your external app/site.

amoldavskyamoldavsky

Ok but what I don't understand is how would I be able to reach a specific installation out of all the installed instances of our app?

 

So essentially, if our app was installed by 100 companies on SF, can I update X only for 5 or 10 of these companies?

 

Thanks