urlForRecord function for Sites

Certified Lead Developer
Hi All,

urlForRecord function can be used to navigate to a record dashboard directly by passing the recordID. Do we have something similar for records which are part of Sites. For example, I want to divert a user from an external portal to a specific record dashboard on Appian site once authentication is done.

Thanks.
Hitesh

OriginalPostID-251745

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Associate Developer

    You can do this by building a URL dynamically:

    fn!load(
    local!siteURL: rule!APN_getSiteUrl(),
    /*Get identifier of record*/
    local!recordIdentifier: a!recordLink(
    recordType: <record type>,
    identifier: <record identifier>
    ).@attributes.@anyAttribute._recordRef,
    /*Build the site record url*/
    local!finalSiteURL: fn!concat(
    local!siteURL,
    "sites/",
    <name of the site here>,
    "/page/",
    <name of the page here>,
    "/record/",
    local!recordIdentifier,
    "/view/",
    rule!APN_replaceNull(
    nullableValue: <dashboard >,
    replacementValue:"summary"
    )
    ),
    /*Get the site record url*/
    local!finalSiteURL
    )

Reply
  • 0
    Certified Associate Developer

    You can do this by building a URL dynamically:

    fn!load(
    local!siteURL: rule!APN_getSiteUrl(),
    /*Get identifier of record*/
    local!recordIdentifier: a!recordLink(
    recordType: <record type>,
    identifier: <record identifier>
    ).@attributes.@anyAttribute._recordRef,
    /*Build the site record url*/
    local!finalSiteURL: fn!concat(
    local!siteURL,
    "sites/",
    <name of the site here>,
    "/page/",
    <name of the page here>,
    "/record/",
    local!recordIdentifier,
    "/view/",
    rule!APN_replaceNull(
    nullableValue: <dashboard >,
    replacementValue:"summary"
    )
    ),
    /*Get the site record url*/
    local!finalSiteURL
    )

Children
No Data