Here is a sample of a SQL Statement using these tokens:
SELECT dbo.Roles.RoleName, dbo.UserRoles.ExpiryDate, dbo.UserRoles.UserID
FROM dbo.UserRoles INNER JOIN
dbo.Roles ON dbo.UserRoles.RoleID = dbo.Roles.RoleID
WHERE (dbo.UserRoles.UserID = [USR-USERID])
The token [USR-USERID] is used in the sample SQL Statement above. This statement returns the recipients current DotNetNuke Roles they belong to and displays the expiration date.
Valid Personalized Tokens are:
• [USR-LASTNAME] - This token will be replaced with the users last name.
• [USR-FIRSTNAME] - This token will be replaced with the users first name.
• [USR-FULLNAME] - This token will be replaced with the users full name.
• [USR-EMAIL] - This token will be replaced with the users email address.
• [USR-AFFILIATEID] - This token will be replaced with the users Affiliate ID.
• [USR-USERID] - This token will be replaced with the users User ID in DNN.
• [USR-USERNAME] - This token will be replaced with the users user name.