GetEmailFromUser Element
The GetEmailFromUser element returns the e-mail address of the UserID that is contained within the element.
Syntax
<GetEmailFromUser
HTMLEncode = "TRUE" | "FALSE">
</GetEmailFromUser>
Attributes
Name | Description |
---|---|
HTMLEncode | Optional Boolean. Converts embedded characters so that they are displayed as text in the browser. In other words, characters that could be confused with HTML tags are converted to entities. |
Related Elements
Parent Elements | Child Elements |
---|---|
Default | UserID |
Example
The following example returns by default the e-mail address for the current value of the UserID except in cases where the value equals an empty string or -1.
<ows:Switch>
<Expr>
<UserID Type="FALSE"/>
</Expr>
<Case Value=""></Case>
<Case Value="-1"></Case>
<Default>
<GetEmailFromUser HTMLEncode="TRUE">
<UserID Type="FALSE"/>
</GetEmailFromUser>
</Default>
</ows:Switch>