• sabarinathan Ravindran 4
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 3
    Replies
Hi All,

I am sending an email from Salesforce using SingleEmailMessage class but the email message record which is created has no value in the thread identifier field but it exists when sending email from standard send email button 
 mail.setReferences('References: 1*<'+String.valueOf(b2bcid)+'> CRLF');

Hello guys,

 

if I'm using this in my outbound messages class I'm getting error as

 

System.EmailException: SendEmail failed. First exception on row 0; first error: INVALID_MESSAGE_ID_REFERENCE, References header is not valid.: []
Class.WPOSP.B2BRespondtoinquirycontroller.sendResponse: line 59, column 5 External entry point 

 

in the above code String.valueOf(b2bcid) is my record id. I was wondering what will be the syntax of mail.setReferenes method.

 

I also looked at http://tools.ietf.org/html/rfc2822#section-3.6.4 but couldn't understand the syntax.

 

Could you please help me in this.

 

Thanks,

Vamsii

  • July 09, 2011
  • Like
  • 0

Hi,

 

When we are trying to generate the Apex code using attached WSDL file.

 

Initially we faced following problem

 

Error: Failed to parse wsdl: Failed to parse WSDL: Unable to find complexType for {http://www.dnbnordic.com/brg/NRGCompanyReportRating/request}ToCountry

 

WSDL url: https://www.bisgateway.com/brg/services/NRGCompanyReportRating?wsdl

 

To resolve above problem we replace the simpleType attribute to complexType.

 

After this we are able to proceed on next step but stuck on another issue. This time we are getting following error.

 

“Error: Unsupported WSDL. Found more than one part for message serviceRequest”

 

I am unable to put the wsdl because its not alow more then 2000 char

 

regards

Manoj Sharma