8

What does the error "Limit_Exceeded: Too many target object ids" mean. I couldn't find any documentation related to this. We are getting this error when we do mass emails from Apex in Salesforce.

10

See the documentation.

You can list up to 250 IDs per email. If you specify a value for the targetObjectIds field, optionally specify a whatId as well to set the email context to a user, contact, or lead. This ensures that merge fields in the template contain the correct data.

| improve this answer | |
  • 3
    Can you add the relevant information from that link? You know the drill. :P – Adrian Larson Aug 3 '16 at 17:21
  • Thank you. I was able to replicate the issue in sandbox based on this info. – RajeshShah Aug 4 '16 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.