Novell Home

Working with Empty E-mail Notification Fields

Novell Cool Solutions: Tip
By Veli-Matti Luotonen

Digg This - Slashdot This

Posted: 27 Jun 2007
 

Problem

How do you get rid of the e-mail notification "Variablenames" ($Variable$) on e-mail, if attibute that is about to be mapped is empty?

Solution

Mapping the following code on the e-mail notitfication field will print "-" instead of $Variable$. Also, the value of eDirAttr will be printed if it has a value.

if((IDVault.get(recipient,'user','eDirAttr')).length<1){'-'};
else
{IDVault.get(recipient,'user','eDirAttr')};


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell