I have a requirement where I have to send Lead data from Salesforce to TIBCO server once
Send_to_CRM__c check box goes from
true on Lead update.
Once updated 2 web-services are suppose to go out:-
- Get Security Token (getSecurityTokenWebService).
- Send Lead Information (createLeadWebService).
These web-services are to be sent out in a sequence, the first one will retrieve a security token which will be sent in the second web-service along with the lead data.
I created a trigger which will call the web-service function once the criteria is met. However it gives me the following error.
Callout from triggers are currently not supported.
I then tried using
@future(callout = true), in that case I am not able to send
trigger.new list to my function as
@future doesnot allow any parameter to be passed.
How can I call this web-service after lead has been updated? The client want this web-service to be almost real-time.