Article

vm_luotonen's picture
article
Reads:

2823

Score:
0
0
 
Comments:

0

Working with Empty E-mail Notification Fields

(View Disclaimer)

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')};


Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell