Role Expiry Email Notification

Hello All,

I Have requirement like, send email notification to user with all the roles that are going to expire within 7 days.

In the email notification should contain all the details as role name , expiry date and category Key example as below:

Eg: Test Role1 (Role Category: Test) (ExpiryDate: 28.06.2017) .

Using email template i am able to print the values in email but, in the case when user contains one or more roles that are going to expire within 7 days, values are coming in the below format.

Eg: Test Role1 (Role Category: Test) (ExpiryDate: 28.06.2017) Test Role2 (Role Category: Test) (ExpiryDate: 28.06.2017) Test Role1 (Role Category: Test) (ExpiryDate: 28.06.2017)

I want these roles to print in new line. Below is the code i'm using :

<do-set-local-variable name="lvExpiringRolesandDates" scope="policy">
<arg-string>
<token-local-variable name="lvExpiringRolesandDates"/>
<token-local-variable name="lvRoleName"/>
<token-text xml:space="preserve"> (</token-text>
<token-text xml:space="preserve">Role Category:</token-text>
<token-local-variable name="varMultipleRoleCatKeys"/>
<token-text xml:space="preserve">)</token-text>
<token-text xml:space="preserve"> (</token-text>
<token-text xml:space="preserve">RoleExpiryDate:</token-text>
<token-local-variable name="lvFormatedEndDate"/>
<token-text xml:space="preserve">)</token-text>
<token-char value="10"/>
</arg-string>
</do-set-local-variable>

someone help me on this to achieve the expected format as below:

Test Role1 (Role Category: Test) (ExpiryDate: 28.06.2017)
Test Role2 (Role Category: Test) (ExpiryDate: 28.06.2017)
Test Role3 (Role Category: Test) (ExpiryDate: 28.06.2017)

Thanks,
Eswar.
  • On 28.06.2017 08:14, ed00491298 wrote:
    >
    > Hello All,
    >
    > I Have requirement like, send email notification to user with all the
    > roles that are going to expire within 7 days.
    >
    > In the email notification should contain all the details as role name ,
    > expiry date and category Key example as below:
    >
    > Eg: Test Role1 (Role Category: Test) (ExpiryDate: 28.06.2017) .
    >
    > Using email template i am able to print the values in email but, in the
    > case when user contains one or more roles that are going to expire
    > within 7 days, values are coming in the below format.
    >
    > Eg: Test Role1 (Role Category: Test) (ExpiryDate: 28.06.2017) Test Role2
    > (Role Category: Test) (ExpiryDate: 28.06.2017) Test Role1 (Role
    > Category: Test) (ExpiryDate: 28.06.2017)
    >
    > I want these roles to print in new line. Below is the code i'm using :


    You could send a HTML mail and format lvExpiringRolesandDates as a table.


    --
    Norbert