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

Update global object from external HTTP request periodicly



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 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 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!


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.


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?