やあみんな、
JavaScriptで作成されたメールをSoapRequestでフォーマットするために数時間試しています。ただし、改行を設定することはできません
\n
-動作しません
<br />
-動作しません

; -動作しません
\u000A \u000D
-動作しません
これがメール本文の実際のコードです
get_EmailBodyInformManager: function (projectNumber, topic, responsibleDepartment, potentialCustomer, KAMofCustomer, projectManager) {
if (KAMofCustomer == null) {
KAMofCustomer = "";
}
return "Dear Sir or Madam. 
" +
"A decision about the project leader for the following international project is necessary: 
" +
"Project Number: " + projectNumber + "
" +
"Topic: " + topic + " 
" +
"Responsible Department: " + responsibleDepartment + "
" +
"Potential Customer: " + potentialCustomer + "
" +
"KAM of Potential Customer: " + KAMofCustomer + "
" +
"WILO Project Manager: " + projectManager + "";
},
そして石鹸のリクエスト:
var xml = "<?xml version='1.0' encoding='utf-8'?>" +
"<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'" +
" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'" +
" xmlns:xsd='http://www.w3.org/2001/XMLSchema'>" +
authenticationHeader +
"<soap:Body>" +
"<Create xmlns='http://schemas.microsoft.com/crm/2007/WebServices'>" +
"<entity xsi:type='email'>" +
"<ownerid>" + userId + "</ownerid>" +
"<regardingobjectid type='opportunity'>" + OpportunityId + "</regardingobjectid>" +
"<subject>" + subject + "</subject>" +
"<description>" + body + "</description>" +
"<from>" +
"<activityparty>" +
"<partyid type='systemuser'>" + userId + "</partyid>" +
"</activityparty>" +
"</from>" +
"</entity>" +
"</Create>" +
"</soap:Body>" +
"</soap:Envelope>";