O'Reilly logo

Mastering Application Development with Force.com by Kevin J. Poorman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating your own API

Up to this point in this chapter, we've been using APIs provided by Salesforce. In effect, we're calling into Salesforce to retrieve or manipulate data. These APIs are well thought out, but they have their limitations. For instance, you can create, read, edit, and delete records, but you can only edit and delete individual records. Additionally, the tree creation endpoint, which allows you to create dependent, related objects in a single call, is only in pilot with the Winter '16 release. To help facilitate complex integrations, Salesforce has provided us with the ability to create our own RESTful endpoints, assigning HTTP actions to custom methods that accept custom payloads. We do this by writing custom Apex classes and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required