2

I'm wondering if it is possible to expose an SF endpoint to the internet that can receive JSON data. Its fairly simple to call out to an external service and retrieve data, but I am wanting an external service to call into my SF org whenever a transaction is completed in the external application. I'm wanting to parse this data and use it to create SF objects within the org. Is this possible? I feel like it is but all of my searching seems to yield results that pertain to retrieving data from endpoints rather than simply being a receiver. Thanks!

1

Yes you can do this by creating @RESTRESOURCE

Links:

https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_annotation_rest_resource.htm

Workbook:

http://www.salesforce.com/us/developer/docs/apex_workbook/Content/apex_rest_1.htm

  • Eric, it'd be great if you had more than just a link only answer. That's preferred to help reduce the effect if link rot. – sfdcfox Aug 6 '14 at 0:12
  • I agree with the above comment, however this answer was exactly what I needed! – Lee Harrison Aug 6 '14 at 0:15
  • @sfdcfox, point taken. – Eric Aug 6 '14 at 0:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.