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
Dan MDan M 

Post to a webservice from the CASES screen

Nobody replied to this post whe it was in the "API" section so I'll try here in the "GENERAL" section.

Hello,

I'm new to AppEx. I need to integrate my application with salesforce by posting a URL to my app as a note in a salesforce case.

I already have the code working to post the URL as a note in a case. What I dont know is what case number to post to.

To overcome this, I already have an API in my app that allows any application to provide me with value added data at any time by posting data to my webservice api.

What I need to do is have sales force post to my web service each time a case is displayed. For example, the user will enter the case number and sales force will display the case screen - standard stuff. On that main case screen, say 'OnPageLoad' I would like to have sales force post the case number to my web service. Once that post is made, I will have enough data to automatically post the URL from my app to a case note.

A sample web method post that I would need would be something like this:

http://mycrm.company.com/WebServiceAPI.asmx/PostData?User={salesforce_user}&CaseNumber={salesforce_casenumber}

Of course where the user and case number are defined in the environment by salesforce at the time of the post.


Please point me in the proper direction to get started? Would this be a flow, a trigger, appex code? Where would you start?

Thank you in advance.
Ashish_SFDCAshish_SFDC
Hi Dan, 


You have to configure a Webservice for this, 

As it is URL based its best to use the REST API, 

See the links below, 

https://developer.salesforce.com/page/REST_API

https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_REST_API

Main pdf

http://www.salesforce.com/us/developer/docs/api_rest/api_rest.pdf

http://salesforce.stackexchange.com/questions/31950/setting-up-salesforce-to-receive-leads-from-third-party-via-webservice

http://stackoverflow.com/questions/4325188/how-to-access-salesforce-api-through-3rd-party-application

Reply back if you have any further questions. 


Regards,
Ashish