You need to sign in to do that
Don't have an account?
ales.p
Invoke Apex Class Web Service from workflow message (SOAP)
Is there a way to invoke Apex Class Web Service from workflow message action (SOAP)?
We built a simple APEX class and we would like to call that class from workflow message action passing URL Endpoint and Sessiond ID.
We built a simple APEX class and we would like to call that class from workflow message action passing URL Endpoint and Sessiond ID.
We receive this error from the message queue: "INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session"
Apex class is very simple for testing purpose:
global class HelloWorld2 {
}
Apex class is very simple for testing purpose:
global class HelloWorld2 {
WebService static void sayHelloWorld(String arg)
{
Lead lead;
lead = new Lead();
lead.firstname = 'Name name';
lead.lastname = 'Surname';
insert lead;
}
}
Endpoint for workflow message action setup is:
https://na4-api.salesforce.com/services/Soap/class/HelloWorld2
Any help about that?
Message Edited by Ron Hess on 07-19-2008 10:03 PM
We use triggers only if extremely required. In most cases we found that we need to give the administrator the ability to change some conditions prior to invoke the apex class.
So we thought about doing that with workflow message SOAP and Apex WebService Class.
Waiting for that feature we build a composite external WebService that simply create a new record and is invoked as required from a Workflow SOAP message.
Thanks again for you help.
In essence. how do we get a Workflow action to generate a report automatically?
Andi Giri
Simon,
I am attempting to invoke a Report URL using Http Apex method.
This code is on an Apex class's method that has been "future" annotated.
This Apex class has been invoked by a trigger that is time-based.
Since there is no session context on a time-based trigger, the Http callout fails to return the report's Excel content. How do I get this to work? This task (obtaining a report's output programmatically) is effortless on a PHP program. Why is this such a pain from an Apex class?
Andi Giri
Softsquare