Home

Results 1 to 2 of 2

Thread: Role Expiry Email Notification

Threaded View

  1. #1

    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.
    Last edited by ed00491298; 28-Jun-2017 at 07:11 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •