• CTCT_Chang
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

I have a managed-released package which works fine in SalesForce Enterprise and Developer editions. But in SalesForce Professional edition I am getting exception:

Failed to enqueue future method: uploadEmailOptOut(String, String, String)

 

I am calling future method in following trigger:

trigger UploadContactOptoutTrigger on Contact (after update) {           
...                       
String userType = 'contact';
String userID = contact.id;
String userEmail = contact.email;
                                            
ProfileBO.uploadEmailOptOut(userType, userID, userEmail);                                                             
...

}

 

Signature of future method is as under:

@Future(callout=true)
public static void uploadEmailOptOut(String userType, String userID, String userEmail)

{            

...
}

 

 

Please let me have your suggestions how to resolve this issue.

 

Thanks.

I have a managed-released package which works fine in SalesForce Enterprise and Developer editions. But in SalesForce Professional edition I am getting exception:

Failed to enqueue future method: uploadEmailOptOut(String, String, String)

 

I am calling future method in following trigger:

trigger UploadContactOptoutTrigger on Contact (after update) {           
...                       
String userType = 'contact';
String userID = contact.id;
String userEmail = contact.email;
                                            
ProfileBO.uploadEmailOptOut(userType, userID, userEmail);                                                             
...

}

 

Signature of future method is as under:

@Future(callout=true)
public static void uploadEmailOptOut(String userType, String userID, String userEmail)

{            

...
}

 

 

Please let me have your suggestions how to resolve this issue.

 

Thanks.

I'm trying to execute the simplest of codes in a future method, but when I call the method, it fails with the following exception:

System.AsyncException: Failed to enqueue future method

 

Here's my code:

 

global class OpptyEmailNotificationUtil {

@future public static void sendEmails1() {

System.debug('test');

}

}

 

I actually want to do a lot of other stuff in the future method, but am unable to even get this simple code to work.  Can anyone help?

 

Thanks. 

 

  • August 25, 2009
  • Like
  • 0