+ Start a Discussion
Espen AntonsenEspen Antonsen 

Create custom Contact field using the REST API

I'm creating an integration with Salesforce that just upserts a contact using an ID from my system. When my app user authorizes the oAuth integration in Salesforce I want to automatically create a new custom Contact field. Is that possible using the REST API? If so, how? Or is there an alternative automatic method I can use?

I'm using the restforce Ruby gem.
Jason FlippenJason Flippen
Hello Espen,

Yes this is possible.  You can find a lot of Salesforce REST API documentation HERE (https://developer.salesforce.com/page/REST_API).  For help in creating an Apex REST class in Salesforce that can be called from your system, check this site out:  Creating REST APIs using Apex REST (https://developer.salesforce.com/page/Creating_REST_APIs_using_Apex_REST)

I hope this helps.

Jason
Laxman Vattam 26Laxman Vattam 26
For Sample REST API code, you can refer below links:
https://yoursalesforceguide.blogspot.com/2016/12/calling-external-rest-service-from.html
https://yoursalesforceguide.blogspot.com/2016/12/exposing-apex-functionality-through.html
I hope this helps