Email Notifications screen (Form-Based Apps)

Configures the email notifications for a form-based app.

Email Notifications screen

Sends an email notification to the app designer or other specified recipients when a record is added, changed, or deleted in a form-based app.

Figure: Email Notifications screen

Email Notifications screen

Fields

Field NameDefinition

Send email notifications for participants when add or edit a record

Function:
Specifies the email template to use to send an email notification when a record is added, changed, or deleted in a form-based app.
Accepted Values:
A list of email templates in your AgilePoint NX environment.
Default Value:
None

Create Add New SMS Template icon

Opens this Screen:
Email Template Configuration > Header tab
Function of this Screen:
Specifies recipients, template name, and other aspects of an email template.

Edit Edit icon

Function:
Changes the content for the selected email template.
To Open this Field:
  1. In the Send email notifications for participants when add or edit a record field, select a template.

Email Template Preview

Function:
Shows a preview of the selected email template.
Accepted Values:
Read only.

Email Template Configuration > Header tab

Specifies recipients, template name, and other aspects of an email template.

Figure: Email Template Configuration > Header tab

Email Template Configuration Header tab

Fields

Field NameDefinition

Email Template Name

Function:
Specifies the name of your email template.
Accepted Values:
One line of text that can have spaces.
Default Value:
None
Example:
Refer to:

Clone Email Template Clone E-mail Template icon

Function:
Specifies your email template from the list.

From

Function:
Specifies the senders in the From field of an email notification.
Accepted Values:
One line of text (a string) in email address format.
Default Value:
None
Accepts Process Data Variables:
Yes
Example:
me@mydomain.com

To

Function:
Specifies the recipients for your email.
Accepted Values:
  • A list of email addresses, separated by semicolons (;).

    If you use process data variables, domain\username is changed automatically to a valid email format

    .
  • A macro that accepts a process data variable as parameter.

    For more information, refer to Built-In Macros.

Default Value:
None
Accepts Process Data Variables:
Yes
Example:
  • me@mydomain.com
  • $MANAGER(DOMAIN\john)
  • $MANAGER(${/my:myFields/my:username})

Also refer to:

CC

Function:
Specifies the recipients to carbon copy on your email.
Accepted Values:
  • A list of email addresses, separated by semicolons (;).

    If you use process data variables, domain\username is changed automatically to a valid email format

    .
  • A macro that accepts a process data variable as parameter.

    For more information, refer to Built-In Macros.

Default Value:
None
Accepts Process Data Variables:
Yes
Example:
  • me@mydomain.com
  • $MANAGER(DOMAIN\john)
  • $MANAGER(${/my:myFields/my:username})

BCC

Function:
Specifies the users to receive a blind carbon copy of your email.
Accepted Values:
  • A list of email addresses, separated by semicolons (;).

    If you use process data variables, domain\username is changed automatically to a valid email format

    .
  • A macro that accepts a process data variable as parameter.

    For more information, refer to Built-In Macros.

Default Value:
None
Accepts Process Data Variables:
Yes
Example:
  • me@mydomain.com
  • $MANAGER(DOMAIN\john)
  • $MANAGER(${/my:myFields/my:username})

Priority

Function:
Specifies the priority setting for an email notification.
Accepted Values:
  • High
  • Normal
  • Low
Default Value:
High

Email Template Configuration > Content tab

Specifies the content of an email template.

Figure: Email Template Configuration > Content tab

Email Template Configuration Content tab

Fields

Field NameDefinition

Subject

Function:
Specifies the subject line for your email.
Accepted Values:
One line of text that can have spaces.
Default Value:
None
Accepts Process Data Variables:
Yes
Example:
${ActivityName} in ${ProcessName} is complete

Also refer to:

Email Body

Function:
Specifies the content of your email.
Accepted Values:
More than one line of text, in HTML plain text format.
Default Value:
None
Accepts Process Data Variables:
Yes
Example:
Refer to:

Add Language (+)

Function:
Specifies an additional language for which you can define the content of an email.
Accepted Values:
A language from the list.
Default Value:
English

HTML / TEXT

Function:
Specifies the display format for your email.
Accepted Values:
  • HTML - Shows the email in HTML format.
  • Text - Shows the email in text-only format.
Default Value:
HTML

Attachment Attachment icon

Function:
Specifies one or more files you want to include in an email.
Accepted Values:
The full path and file name for the attachments you want to include.
Limitations:
Default Value:
None
Accepts Process Data Variables:
Yes
Example:
  • C:\My Documents\sample1.doc
  • ${My Files}

Enter Server File Path

Function:
Specifies the absolute path of the document you want as an attachment to the email.
To Open this Field:
  1. On the Content tab, click Attachment Attachment icon.
Accepted Values:
The absolute path of the document on the repository.
Note: You must click Add Add icon to add the URL to the list.
Default Value:
None

Add Add icon

Function:
Includes a file as an attachment in an email.
To Open this Field:
  1. On the Content tab, click Attachment Attachment icon.

Email Macro

Opens this Screen:
Email Macro
Function of this Screen:
Shows a list of macros you can use as process data variable to configure email templates.

Email Template Configuration > Content > Plain Text tab

Specifies the content of an email template in plain text format.

Figure: Email Template Configuration > Content > Plain Text tab

Email Template Configuration Plain Text tab

Fields

Field NameDefinition

Subject

Function:
Specifies the subject line for your email.
Accepted Values:
One line of text that can have spaces.
Default Value:
None
Accepts Process Data Variables:
Yes
Example:
${ActivityName} in ${ProcessName} is complete

Also refer to:

Email Body

Function:
Specifies the content of your email.
Accepted Values:
More than one line of text in text-only format.
Default Value:
None
Accepts Process Data Variables:
Yes

Add Language (+)

Function:
Specifies an additional language for which you can define the content of an email.
Accepted Values:
A language from the list.
Default Value:
English

HTML / TEXT

Function:
Specifies the display format for your email.
Accepted Values:
  • HTML - Shows the email in HTML format.
  • Text - Shows the email in text-only format.
Default Value:
HTML

Email Macro tab

Shows a list of macros you can use as process data variable to configure email templates.

Figure: Email Macro tab

Email Macro tab

Good to Know

  • This tab applies only to email templates. Email macros are a special type of variable only used in emails.
  • Email macros use a syntax that is different from other variable types.

Fields

Field NameDefinition

$CONVERTDATETIME()

Function:
Changes the current date-time value to a specified time zone.
Syntax:
$CONVERTDATETIME(ConvertDateTimeInAgilePoint)
Accepted Values:
The input for the (ConvertDateTimeInAgilePoint) parameter can be one of these:
Example:
  • $CONVERTDATETIME(06/16/2017 11:30:42 AM,Eastern Standard Time (North America) changes the value to 06/16/2017 03:00:42 AM
  • $CONVERTDATETIME(${/pd:AP/pd:formFields/pd:DateTime1},Japan Standard Time (Tokyo)) changes the stored current date and time value to 6/13/2017 3:02:06 PM

$FORMATDATETIME()

Function:
Converts a date-time value to a specified date-time format.
Syntax:
$FORMATDATETIME(ValidDateTimeInAgilePoint)
Accepted Values:
The input for the (ValidDateTimeInAgilePoint) parameter can be one of these:
This macro supports these date and time formats:
  • M/d/yyyy
  • M/d/yy
  • yyyy-MM-dd
  • d-MMM-yy
  • M.d.yyyy
  • d MMMM yyyy
  • MMMM yy
  • MMM-yy
  • M/d/yyyy h:mm
  • M/d/yyyy h:mm:ss
  • h:mm
  • h:mm:ss
  • HH:mm
  • HH:mm:ss
Example:
  • $FORMATDATETIME(06/08/2017 01:30:42,yyyy/M/d hh:mm) changes the value to 2017/6/8 01:30
  • $FORMATDATETIME(${/pd:AP/pd:formFields/pd:DateTime},M/d/yyyy h:mm) changes the stored value 31/07/20017 11:00:12 to 07/31/2017 11:00

$GROUP()

Function:
Gets the members of a group.
  • When used in the To, CC, and BCC fields of an email template, this macro gets the email addresses for all the members in the group.
  • When used in the the email body of an email template, this macro shows the names of all the members of the group.
Syntax:
$GROUP(ValidGroupNameInAgilePoint)
Accepted Values:
The input for the (ValidGroupNameInAgilePoint) parameter can be one of these:
Example:
  • $GROUP(Administrators)
  • $GROUP(${/my:myFields/my:groupname)

Also refer to:

$ROLE()

Function:
Gets the users who are assigned a role.
  • When used in the To, CC, and BCC fields of an email template, this macro gets the email addresses of all the users who are assigned the role. This includes the users who are members of a group that is assigned the role.
  • When used in the the email body of an email template, this macro shows the names of all the users who are assigned the role. This includes users who are members of a group who is assigned the role.
Syntax:
$ROLE(ValidRoleNameInAgilePoint)
Accepted Values:
The input for the (ValidRoleNameInAgilePoint) parameter can be one of these:
Example:
  • $ROLE(Manager)
  • $ROLE(${/my:myFields/my:rolename})

$MANAGER()

Function:
Gets the manager for the specified user name. In other words, UserName is the subordinate.
Syntax:
$MANAGER(UserName)
Accepted Values:
The input for the subordinate UserName parameter can be one of these:
Example:
  • $MANAGER(DOMAIN\john)
  • $MANAGER(${/my:myFields/my:username})

$URLSHORTNER()

Function:
Gets the short form of a URL.

To use this macro, you must have a Bitly access token.

For more information, refer to Access tokens for Bitly.

Syntax:
$URLSHORTNER(URL)
Accepted Values:
The input for the URL parameter can be one of these:
Example:
  • $URLSHORTNER(https://myportal.com/ApplicationBuilder/eFormRender.html?Process=MyDemo)
  • $URLSHORTNER(${/pd:AP/pd:formFields})
Limitations:

$XMLREPEATING2HTML()

Function:
When used in an email template, this macro returns an HTML table that contains the repeating data from the form in the generated email notification.
Syntax:
$XMLREPEATING2HTML(XpathRepeatingSchemaElement)
Accepted Values:
The input for the (XpathRepeatingSchemaElement) parameter is an Xpath to a repeating schema element from your AgilePoint NX app. To refer to a literal XML string from an Xpath, add a tilde (~) at the end of the path.
Example:
$XMLREPEATING2HTML(${/pd:AP/pd:formFields/pd:SubForm1_SubForm~})

Also refer to:

Common Usage:
In the body of an email template to show data from a subform.

$XMLREPEATING2HTMLWITHFILTER()

Function:
This macro formats the output in an HTML table, with the specified values removed.
Syntax:
$XMLREPEATING2HTMLWITHFILTER(XpathRepeatingSchemaElementWithFilter)
Accepted Values:
This macro accepts as a parameter an Xpath expression for the location of a schema element from your app.
Example:
$XMLREPEATING2HTMLWITHFILTER(${/pd:AP/pd:formFields/pd:SubForm1_SubForm~},{TextBox3;TextBox4},{DateTime2,M/d/yyyy h:mm})
Common Usage:
In the body of an email template to show data from a subform.