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
Christine F.ax367Christine F.ax367 

How to enable asynchronous Apex in force.com IDE?

I am using force.com IDE Eclipse tool to code asynchronous Apex method in a class but not able to save. I get "Save error: Asynchronous Apex not enabled error".  Any idea?
 
Here is part of the Apex class code that matter:
 
Code:
public class FirmAddressSync_Async {
 
 @future
     Public static void updateContact(Set<Id> accountIds, String idString, Account[] TriggerOld)
     {
   integer x = 0;
   integer y = 0;
   Contact[] contactToUpdate = new Contact[]{};
       Map<String, String> contactIds = new Map<String, String>();
...
...
...
}
}

 
 
JonPJonP
Asynchronous Apex is in developer preview, so it's only available in Developer Edition organizations.  If you try to save/deploy it to a production Salesforce organization, the server will return the error you encountered.
Christine F.ax367Christine F.ax367
Wow.. that's good to know.. guess we are sitting duck till the function moves its way to Enterprise then... Thank you!
HarmpieHarmpie
Why is async APEX in the dev501 training, without any notification that it's not usable yet? (receiving the same error)
Message Edited by Harmpie on 04-09-2009 05:34 AM