%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

  1. 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') ")")

 

 

Tagged:

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') ")")
    

     

  • Perhaps it is the unquoted comma you have in the message argument (after 2. %Agency and elsewhere)?

  • If your message is HTML enabled you could try using
    instead of Newline