HomeGuidesRecipesAPI
HomeGuidesAPILog In
Guides
These docs are for v14. Click to read the latest docs for v31.

Constant Values

When sending emails to users (usually the assignee of a Workflow task), SmartIQ replaces a number of pre-defined values with corresponding information which it might otherwise be difficult or tedious for the designer to obtain. A non-exhaustive list follows:

ValueReplaced with
[Comments]user comments on workflow submit
[ProjectName]published name of project
[StateName]name of workflow state
[AssigneeFullName]full name of assigned user
[AssigneeFirstName]first name of assigned user
[AssigneeSurname]surname of assigned user
[RequesterFullName]full name of requester
[RequesterFirstName]first name of requester
[RequesterSurname]surname of requester
[SenderFullName]full name of sender
[SenderFirstName]first name of sender
[SenderSurname]surname of sender
[ReceiverFullName]full name of receiver
[ReceiverFirstName]first name of receiver
[ReceiverSurname]surname of receiver
[AccessCode]temporary user access code for the assigned temporary user
[DocumentLink]URL to a zip file containing the documents which were generated by the submission
[ProjectLink]formatted link to the workflow task
parts of the link can be adjusted, see below
[ProjectUrl]bare URL of the workflow task
[WorkflowId]unique identifier of the workflow task
[Choice]see Email Approval for details

[ProjectLink]

Parts of the resulting Project Link can be overridden with:
LinkUrl=
LinkText=
StateName=
ProjectName=
ProduceUrl=

These are passed as a pipe-separated list of key-values:
[ProjectLink|LinkUrl=https://google.com|LinkText=This is a link to google]
The above example will result in a link like:
<a href="https://google.com">This is a link to google</a>

If a ProduceUrl is supplied, other values will be appended to it to construct the URL as if the supplied value were the Produce URL of the system.

The positions of the placeholders in the formatted link are as follows.

If LinkText is not supplied:
<a href="LinkUrl">ProjectName - StateName</a>

If LinkText is supplied and is not empty:
<a href="LinkUrl">LinkText</a>

If LinkText is supplied as empty:
LinkUrl