%Newline() stops working halfway through email message
I am sending a notification email to a user when a request is completed. The email is drawn partly from a database, and is partly generated by code. About two thirds of the way through the email (in the code generated section) %Newline() stops working. I am still able to use procedure variables, but not %Newline().
Any ideas why this is happening?
This is on Metastorm v7.5.1
Below find the email example (newline stops working after the line "1. Test Moredata" and the code I use to email.
PLEASE DO NOT REPLY TO THIS EMAIL. THIS EMAIL IS BEING SENT FROM AN AUTOMATED SYSTEM.
==========================================================================
Telework Request#8635
Supervisor: kaleners
Please do not respond to this message.
Congratulations!
You have been approved for participation in the M&RP Telework Program as indicated below:
1.Test Moredata
- APHIS, Marketing & Regulatory Programs Business Services, Information Technology Division 3. Pay plan GS, Series 4334, Grade 00 4. Participation type Situational/Unscheduled 5. Official duty station Minneapolis, MN 6. Alternate work location 353534, AZ
%Email("%EmpEmail",,"Telework Application Accepted","%EmailText %Newline()1.%EmpFName %EmpLName %EmpSuf %Newline()2. %Agency, %Program, %Division %Newline()3. Pay plan %PayPlan, Series %OSeries, Grade %Grade %Newline()4. Participation type %ParticipationType %Newline()5. Official duty station %DutyCity, %DutyState %Newline()6. Alternate work location %TeleCity, %TeleState %Newline()%Newline()","c:\inetpub\wwwroot\MRPTelework\MRPAgreement.htm","%SelectSQL("SELECT LK_DESC FROM EW_MRPBS.MRPBSHRCOM_LOOKUP WHERE (LK_TYPE = 'ERA') ")")
Comments
-
It may be voodo, but the only difference is you have a space after the period on each line except the first.
try this:
%Email("%EmpEmail",,"Telework Application Accepted","%EmailText %Newline()1.%EmpFName %EmpLName %EmpSuf %Newline()2.%Agency, %Program, %Division %Newline()3.Pay plan %PayPlan, Series %OSeries, Grade %Grade %Newline()4.Participation type %ParticipationType %Newline()5.Official duty station %DutyCity, %DutyState %Newline()6.Alternate work location %TeleCity, %TeleState %Newline()%Newline()","c:\inetpub\wwwroot\MRPTelework\MRPAgreement.htm","%SelectSQL("SELECT LK_DESC FROM EW_MRPBS.MRPBSHRCOM_LOOKUP WHERE (LK_TYPE = 'ERA') ")")
0 -
Perhaps it is the unquoted comma you have in the message argument (after 2. %Agency and elsewhere)?
0 -
If your message is HTML enabled you could try using
instead of Newline0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 155 General Questions
- 149 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 33 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories