Merge Variables
There are a couple of merge variables available to make it just a bit easier when you create your notifications.
There are simple tokens, and the ability to @mention Teams Users and Tags.
Tokens
Variable Name | Description |
%%USER_NAME%% | The Name of the current user. eg: John Doe |
%%USER_EMAIL%% | The Email of the current user. |
%%USER_ID%% | The 18 character Salesforce Userid of the current user. eg: 005Rt000006JpD5IAK |
%%ORG_NAME%% | The name of the Sandbox, or "Production" |
%%ORG_ID%% | The 18 character Id of the Org |
%%ORG_URL%% | The URL for the Lightning User Interface, ideal for use with the record id. eg: https://acme.lightning.force.com/ |
%%CONTENT_URL%% | The URL for content stored in the org, such as files. eg: https://acme.file.force.com/ |
Mention Users and Tags
Mentions require a few optional Microsoft Permissions granted by the Teams admin.
Variable Name | Description |
%@u:EMAIL%% | Mention Teams User by Email Address. e.g.: %@u:john.doe@acme.com%% |
%@u:DISPLAYNAME%% | Mention Teams User by Display Name. e.g.: %@u:John Doe%% |
%@t:TAGNAME%% | Mention a Team's Tag by Name. e.g.: %@t:Marketing Ops%% |
Examples
You can also use Flow resources just like you would in a Text Template...except that you have to manually type in the name of the variable.
Here are some common examples of combining the various approaches.
Example | Description |
%%ORG_URL%%/{!Record.Id} | Provides a URL to the Triggering Record in a Record-Triggered Flow. |
%@u:%%USER_EMAIL%%%% | @ mention current User (assumes emails match in Salesforce and Teams) |