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
Vandana RattanVandana Rattan 

@future method not getting called from trigger

I have a requirement to call a @future method from a Trigger. However, the method is not getting executed at all. None of my debug statements are getting printed. Can anyone give any pointers?
Ankit AroraAnkit Arora
See straight forward you can call future method from Trigger, so it would be easy for us to track what is the problem if you can post your code here.
David "w00t!" LiuDavid "w00t!" Liu
Note that the @future method debug log is separate from the one in your trigger.  

Let your trigger finish, wait a few extra seconds longer, and you should see a second debug log that should have your debug logs!
Andries.NeyensAndries.Neyens
Make sure that if you are trying this in a Unit test to use the Start and stoptest. This will trigger the future calls...