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
nwingnwing 

Are They? "Callout from triggers are currently not supported" Error

 

I am getting conflicting information.  While deploying I get an error (subject line).  On a few blogs I see discussion of Callouts not being supported from triggers, while at the same time there are specific examples provided that are doing just that, and is something very similar to what I have put together......(for instance the below link)

 

http://wiki.developerforce.com/index.php/Retrieving_External_Data_using_Apex_Callouts

 

Is there clarification anywhere presently on this?

 

Thanks for the direction....

nwingnwing

 

For anyone who had similar issue, here is the answer.......  basically you need to set the method as an @future....

 

 

http://www.salesforce.com/us/developer/docs/apexcode/index_Left.htm#StartTopic=Content/apex_classes_annotation.htm#future

 

 

iBr0theriBr0ther

Have you set Remote Site Settings in Security Controls yet?

 

Cheers,

nwingnwing

Yes,

 

The process is functional from a VF controller/page lookup.  I am just trying to pull the same information from the same location, and instead of just displaying, doing an update to store reportable info in salesforce itself.  So, I was hoping to setup a trigger, on an update, to initiate the request.  Apparently, you need to do an @future and it will take then..... which makes some sense.....