• Pragnya Panda
  • NEWBIE
  • 10 Points
  • Member since 2014

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

 I have a requirement i need to  fire a Workflow when  data populating  in contact fields  such as Emailbounced Date and Emailbounced Reason (Email  Bounce Management).

my  workflow criteria is: ISCHNAGED(Emailbounced Date)

 if it meets the criteria  workflow actions under this workflow are not triggering.

 i want to populate  other field values in Contacts based on  this action  how can i meet this requirement.


Thanks in Advance.
Hi All,

  i am trying  to fetch the Targetobjectid from SendEmailResult  object but i am not able to get that value.

 my functionality is :

I need to  send  Bulk Emails to different Contacts  using Send Email method like below:

 Messaging.sendEmail(emails,false); // Here emails is a List.

  Example :  Lets say i am sending 50 mails at a time  in that  48 mails are successfully sent and  2 are failed to send.

    Here i need to find what are the Mails failed and  it's related records (in this Scenario  case is my Object)

 for getting the SendEmailresults  code is below :

List<Messaging.SendEmailResult> sendEmailResults = Messaging.sendEmail(emails,false);
  for(Messaging.SendEmailResult sendEmailResult: sendEmailResults){

                 if(!sendEmailResult.isSuccess()){
                    system.debug(sendemailresult);
                }
                   
              }

 The sendEmailresult for  Failure records is       Messaging.SendEmailResult[getErrors=(Messaging.SendEmailError[getTargetObjectId=null;]);isSuccess=false;]

 The send Email Result for Successful Records is      Messaging.SendEmailResult[getErrors=();isSuccess=true;]

but in both ways  iam not able to get the  TargetObjectid .
 
i red in Salesforce docs  as below:

an error occurs that prevents sendEmail() from sending the email to one or more targets, each TargetObjectId for those targets has an associated error in SendEmailResult. A TargetObjectId that does not have an associated error in SendEmailResult indicates the email was sent to the target. If SendEmailResult has an error that does not have an associated TargetObjectId, no email was sent. 


  let me know am i doing anything wrong here and one morething   failure email    are due to  bouncing emails not because of  email address empty in contact.   
Thanks in Advance.

 
Hi All,

  i am trying  to fetch the Targetobjectid from SendEmailResult  object but i am not able to get that value.

 my functionality is :

I need to  send  Bulk Emails to different Contacts  using Send Email method like below:

 Messaging.sendEmail(emails,false); // Here emails is a List.

  Example :  Lets say i am sending 50 mails at a time  in that  48 mails are successfully sent and  2 are failed to send.

    Here i need to find what are the Mails failed and  it's related records (in this Scenario  case is my Object)

 for getting the SendEmailresults  code is below :

List<Messaging.SendEmailResult> sendEmailResults = Messaging.sendEmail(emails,false);
  for(Messaging.SendEmailResult sendEmailResult: sendEmailResults){

                 if(!sendEmailResult.isSuccess()){
                    system.debug(sendemailresult);
                }
                   
              }

 The sendEmailresult for  Failure records is       Messaging.SendEmailResult[getErrors=(Messaging.SendEmailError[getTargetObjectId=null;]);isSuccess=false;]

 The send Email Result for Successful Records is      Messaging.SendEmailResult[getErrors=();isSuccess=true;]

but in both ways  iam not able to get the  TargetObjectid .
 
i red in Salesforce docs  as below:

an error occurs that prevents sendEmail() from sending the email to one or more targets, each TargetObjectId for those targets has an associated error in SendEmailResult. A TargetObjectId that does not have an associated error in SendEmailResult indicates the email was sent to the target. If SendEmailResult has an error that does not have an associated TargetObjectId, no email was sent. 


  let me know am i doing anything wrong here and one morething   failure email    are due to  bouncing emails not because of  email address empty in contact.   
Thanks in Advance.