Skip to main content

HelloID

Use shared fields in notifications (dependency-free)

Important

As an alternative to Use shared fields in notifications, which requires dependencies between target systems, you can also access shared fields in notifications without creating dependencies. This involves a trade-off: no dependencies are created, but shared fields aren't guaranteed to be up-to-date, or even available. This method is recommended when the shared attributes aren't strictly necessary in your notification. For more information on dependencies, see Dependency order.

To use shared fields in Notifications of a non-dependent (non-guaranteed) system:

  1. Required: Share a field from another target system, but do not make this system (that the notification is for) dependent on the shared system.

    For this example, we've shared the sAMAccountName field from our AD system, but we have not made our PowerShell v2 system dependent on AD:

    2023-11-17_12-58-47.jpg
    2023-11-17_13-16-06.jpg
  2. Add a new notification, or edit an existing notification.

    For this example, we've added an Account Create email notification for our PowerShell v2 system:

    2023-11-17_12-47-25.jpg
  3. On the Message tab, click the Variables button to open the variable hint box.

    2023-11-17_13-20-10.jpg
  4. Locate and click the shared field to copy its merge code to your clipboard. Paste it into your message body. These merge codes use the syntax {{Person.Accounts.<SharedSystemIdentifier>.<SharedFieldName>}}.

    For this example, we've copied & pasted the {{Person.Accounts.MicrosoftActiveDirectory.SamAccountName || ""}} merge code.

    2023-11-17_13-22-12.jpg
  5. Save your changes.

If the shared field(s) are available when the notification is triggered during enforcement, their values will be calculated. For example:

2023-11-17_13-25-01.jpg