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
mibropmibrop 

Can you create/expose your own web service on Salesforce platform?

Interesting in others' designs on the following scenario:

User launches content from a 3rd party content server. That content needs to communicate usage stats (via the content server, not from the client) back to the Salesforce platform. See following:


I'm new to the Salesforce platform -- is it possible to write my own web service on the Salesforce platform so my 3rd party content server can communicate to it?

I could do client-to-Salesforce communication as well if Apex is versatile enough at this point. I use the 3rd party content server both to serve the content and as a bridge to parse usage data and then send it off to Salesforce.

Thanks for any insights.

Mike
Seattle


SuperfellSuperfell
You can write your own web services using apex, however that actually seems to be overkill, the regular API would let you create/update custom object(s) that contained the useage data.