Free cookie consent management tool by TermsFeed urlforrecord() Function
urlforrecord() Function


urlforrecord( recordType, recordIds )

This function allows you to return the URLs for one or more records or a record list view that can then be used in a link component.

See also:


Keyword Type Description



The record type for the record(s).


Any Type Array

The identifiers of the record(s) to return URLs for.


Text Array

Usage considerations

The user executing the function must have at least viewer rights to the record type or the expression will fail and an error will occur. They do not need to have viewer rights to the record(s).

For a process model record type, the recordIds value is the process Id. For a data store entity record type, it is the primary key for the entity.

If the recordIds value is null or empty, the function returns the URL for the record list view of the recordType value record type.

If the record type for the recordType value does not exist, the expression will fail and an error will occur.

If a user does not have at least viewer rights to the record or record type in the returned URL, the user will see an error when trying to open the URL.


These examples are designed to illustrate how to use the urlforrecord() function in the Expression Rule Interface.

NOTE: Record type object references are specific to each environment. If you copy and paste these examples into the Expression Rule interface, they will not evaluate in your Test Rules interface. Use them as a references only.

URL for a Single Record

urlforrecord(recordType!Employee, "7")

returns ""

URLs for Multiple Records

urlforrecord(recordType!Employee, {"7","8"})

returns {"", ""}

URL for a Record Type

urlforrecord(recordType!Employee, null)

returns ""

Feature compatibility

The table below lists this function's compatibility with various features in Appian.
Feature Compatibility Note
Portals Partially compatible

Can be used with Appian Portals if it is connected using an integration and web API.

Offline Mobile Partially compatible

Can be used with offline mobile if it is loaded at the top of the form.

Sync-Time Custom Record Fields Incompatible
Real-Time Custom Record Fields Incompatible

Custom record fields that evaluate in real time must be configured using one or more Custom Field functions.

Process Reports Incompatible

Cannot be used to configure a process report.

Process Events Incompatible

Cannot be used to configure a process event node, such as a start event or timer event.

urlforrecord() Function