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
  • I know this an old post but I encountered the issue recently and this expression have worked for me

    {
    a!safeLink(
    label: "",
    uri: fn!substitute(
    fn!urlforrecord(
    recordtype: <your record>,
    recordIds: <recordid>
    ),
    rule!APN_getSiteUrl()& "tempo/records/item/",
    rule!APN_getSiteUrl() & "sites/<site name>/page/program-dashboard/record/"
    )


    )
    }

    using this expression in record link solved my problem as it allows the summary view to open in a new window preserving my filters selected in the current window.
Reply
  • I know this an old post but I encountered the issue recently and this expression have worked for me

    {
    a!safeLink(
    label: "",
    uri: fn!substitute(
    fn!urlforrecord(
    recordtype: <your record>,
    recordIds: <recordid>
    ),
    rule!APN_getSiteUrl()& "tempo/records/item/",
    rule!APN_getSiteUrl() & "sites/<site name>/page/program-dashboard/record/"
    )


    )
    }

    using this expression in record link solved my problem as it allows the summary view to open in a new window preserving my filters selected in the current window.
Children
No Data