urlforrecord() Function Question

URL for a Record Type

urlforrecord(cons!myrecordtype,null) returns https://records.appian.com/suite/tempo/records/type/V1muDw/view/all in TEMPO.

I want to open them within the same site on the same page.

How do I achieve this?

Currently with my code it opens in a new tab. I want it to open in the same tab.

  Discussion posts and replies are publicly visible

Parents
  • Hi Aneesh,
    You may refer below code snippet to create record link to open record within the site. 

    ri!uniqueId is the primary key for your record type.

    load(
    local!siteUrl: cons!YOUR_SITE_URL,
    local!sitePage: cons!YOUR_SITE_PAGE,
    local!record: index(
    index(
    a!recordLink(
    recordType: cons!RECORD_TYPE,
    identifier: ri!uniqueId
    ),
    "@attributes"
    ),
    "@anyattribute",
    null
    )._recordRef,
    local!siteUrl & "/page/" & local!sitePage & "/record/" & local!record & "/view/summary"

    )

Reply
  • Hi Aneesh,
    You may refer below code snippet to create record link to open record within the site. 

    ri!uniqueId is the primary key for your record type.

    load(
    local!siteUrl: cons!YOUR_SITE_URL,
    local!sitePage: cons!YOUR_SITE_PAGE,
    local!record: index(
    index(
    a!recordLink(
    recordType: cons!RECORD_TYPE,
    identifier: ri!uniqueId
    ),
    "@attributes"
    ),
    "@anyattribute",
    null
    )._recordRef,
    local!siteUrl & "/page/" & local!sitePage & "/record/" & local!record & "/view/summary"

    )

Children