You need to sign in to do that
Don't have an account?
Kevin Nguyen
Send a URL with an Apex Class
Hi all,
I want to know if my problem is possible.
This is the scenario : I receive an email in my Mail service and i store it in a personnal object : Mail.
But, i want to see my object in an application.
So i wanted to know if it is possible to send an URL from my Apex Class to my application for use it. Is it possible ? If it is, how can i do it ?
Sorry i am new in salesforce and sorry for my english not well.
Kevin -- I'm not 100% clear about your requirements here. But here are some tips.
Assuming your application is outside of SFDC, then you have several integration choices
Eric,
I have tried Workflows Solution but it doesn't matter.
For Http callout , I tried too but it is the same.
I just want to call an URL like http://192.168.1.1:54551/InsertTask?Id=...
It's for insert a task in my other application with a GET in my URL.
Can you help me with some code please ? Or can you explain me the way for Workflow ' solution please ?
Kevin
Kevin
From the APEX developers guide:
Use this code and replace variable 'url' with the URL you need to use.
Then read the Apex Developers Guide on how to write test methods for HTTP callouts as a testmethod won't actually invoke the callout since it can't rollback any updates done by the callout;
Eric
Thanks for your code i will try with this solution. Nevertheless, is it possible in Workflow to send a GET ?
Edit : I tried This but it didn't do anything
Kevin --
SFDC workflow outbound messaging sends SOAP messages - your end point must be set up to handle SOAP messages if you use this route
In your code example - how did this even compile?