---
updatedAt: 2025-06-03T00:21:41.000Z
agentTools:
  projectIndex: https://docs.synchronet.com/llms.txt
---

# E-mail Template Variables

You can insert dynamic values into the e-mails that CLICK sends. Below is a list of variables that are available for each e-mail type.

## WorkSpaces Invite

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Variable
      </th>

      <th>
        Value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `{{ directory.RegistrationCode }}`
      </td>

      <td>
        Registration code needed to launch WorkSpace client:\
        `SLiad+S94LBV`
      </td>
    </tr>

    <tr>
      <td>
        `{{ workspace.UserName }}`
      </td>

      <td>
        The username associated with the WorkSpace\
        `ssmith`
      </td>
    </tr>

    <tr>
      <td>
        `{{ user.guid }}`
      </td>

      <td>
        Globally Unique Identifier associated with the user in your Active Directory

        `9ea3e96b-cfc3-4e93-acdc-e9e4b6c7b74f`
      </td>
    </tr>

    <tr>
      <td>
        `{{ user.display_name }}`
      </td>

      <td>
        First and last name
      </td>
    </tr>

    <tr>
      <td>
        `{{ user.mail }}`
      </td>

      <td>
        User email
      </td>
    </tr>

    <tr>
      <td>
        `{{ user.user_principal_name }}`
      </td>

      <td>
        user [login@domain.com](mailto:login@domain.com)
      </td>
    </tr>

    <tr>
      <td>
        `{{ user.email }}`
      </td>

      <td>
        User email address
      </td>
    </tr>

    <tr>
      <td>
        `{{ user.user_name }}`
      </td>

      <td>
        `ssmith`
      </td>
    </tr>

    <tr>
      <td>
        `{{ user.sam_account_name }}`
      </td>

      <td>
        AD user log in name
      </td>
    </tr>

    <tr>
      <td>
        `{{ links.app }}`
      </td>

      <td>
        Link to CLICK self-service portal
      </td>
    </tr>
  </tbody>
</Table>

## AppStream Invite

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Variable
      </th>

      <th>
        Value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `{{ links.stack }}`
      </td>

      <td>
        AppStream access link
      </td>
    </tr>

    <tr>
      <td>
        `{{ stack.Name }}`
      </td>

      <td>
        AppStream Stack name
      </td>
    </tr>
  </tbody>
</Table>

## Auto-Cost Optimizer Reminder

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Variable
      </th>

      <th>
        Value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `{{ date }}`
      </td>

      <td>
        Cost optimization scheduled date
      </td>
    </tr>

    <tr>
      <td>
        `{{ hour }}`
      </td>

      <td>
        Number of hours before the cost optimization will occur
      </td>
    </tr>

    <tr>
      <td>
        `{{ url }}`
      </td>

      <td>
        Link to cost optimization schedule settings
      </td>
    </tr>
  </tbody>
</Table>

## Auto-Cost Optimizer Summary

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Variable
      </th>

      <th>
        Value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `{{ report_url }}`
      </td>

      <td>
        Link to CLICK reports page for detailed report
      </td>
    </tr>

    <tr>
      <td>
        `{{ start_date }}`
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        `{{ end_date }}`
      </td>

      <td>

      </td>
    </tr>

    <tr>
      <td>
        `{{ exempted|length }}`
      </td>

      <td>
        Workspaces exempted from cost optimization
      </td>
    </tr>

    <tr>
      <td>
        `{{ updated|length }}`
      </td>

      <td>
        Workspaces optimized from cost optimization
      </td>
    </tr>
  </tbody>
</Table>

## Auto-Cost Optimizer Report

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Variable
      </th>

      <th>
        Value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `{{ report_date }}`
      </td>

      <td>
        Date of the report
      </td>
    </tr>

    <tr>
      <td>
        `{{ managed_workspaces }}`
      </td>

      <td>
        Number of WorkSpaces managed by CLICK
      </td>
    </tr>

    <tr>
      <td>
        `{{ unmanaged_workspaces }}`
      </td>

      <td>
        Number of WorkSpaces not managed by CLICK
      </td>
    </tr>

    <tr>
      <td>
        `{{ managed_users }}`
      </td>

      <td>
        Number of users managed by CLICK
      </td>
    </tr>

    <tr>
      <td>
        `{{ accounts }}`

        List, each element is a mapping that contains

        * `id`
        * `managed`
        * `unmanaged`
      </td>

      <td>
        WorkSpace Accounts

        -WorkSpace account IDs\
        -Number of WorkSpaces managed by CLICK in a particular account\
        -Number of WorkSpaces not managed by CLICK in a particular account
      </td>
    </tr>

    <tr>
      <td>
        `{{ regions[] }}`

        List, each element is a mapping that contains

        * `id`
        * `managed`
        * `unmanaged`
      </td>

      <td>
        WorkSpace Regions

        -WorkSpace region ID\
        -Number of WorkSpaces in a particular region managed by CLICK\
        -Number of WorkSpaces in a particular region not managed by CLICK
      </td>
    </tr>

    <tr>
      <td>
        `{{ compute_types }}`

        List, each element is a mapping that contains

        * `id`
        * `value`
      </td>

      <td>
        WorkSpace compute types

        -Standard, Value, Power\
        -Number of WorkSpaces in each compute type
      </td>
    </tr>

    <tr>
      <td>
        `{{ before }}`

        Mapping, contains

        * `savings_estimate`
        * `savings_estimate_percent`
        * `cost_estimate`
        * `cost_optimized_percent`
        * `cost_optimized_count`
        * `savings_auto_stop`
        * `recommended_auto_stop`
        * `savings_always_on`
        * `recommended_always_on`
        * `cost_optimization_exempted_percent`
        * `cost_optimization_exempted_count`
        * `savings_never_used`
        * `never_used`
        * `savings_low_usage`
        * `low_usage`
        * `high_usage`
      </td>

      <td>
        Before Cost Optimization

        -CLICK total estimated savings\
        -Percent of savings\
        -Total cost estimate\
        -Percentage of the fleet is optimized\
        -$ Savings by switching WorkSpaces to Auto\_Stop\
        -$ Savings by switching WorkSpaces to Always\_On\
        -Percentage of your fleet that is exempted from CLICK's cost optimization\
        -Number of WorkSpaces exempted from CLICK's cost optimization\
        -$ savings if never used WorkSpaces were terminated\
        -Number of never used workspace\
        -Number of low usage WorkSpaces\
        -Number of high usage WorkSpaces
      </td>
    </tr>

    <tr>
      <td>
        `{{ after }}`

        Mapping, contains same attributes as `before`
      </td>

      <td>
        After CLICK's automated cost optimization
      </td>
    </tr>
  </tbody>
</Table>

## WorkSpaces Export Notification

<Table align={["left","left"]}>
  <thead>
    <tr>
      <th>
        Variable
      </th>

      <th>
        Value
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `{{ filename }}`
      </td>

      <td>
        Filename of the WorkSpaces export
      </td>
    </tr>

    <tr>
      <td>
        `{{ url }}`
      </td>

      <td>
        URL linking to CLICK reports page, where the WorkSpace export is located
      </td>
    </tr>
  </tbody>
</Table>