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 

Call a WebService from The 'Cases' Screen

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, 


Refer to the other post,

https://developer.salesforce.com/forums/?id=906F00000009XMZIA2


Regards,
Ashish