Hiding Record URL behind a text

I am retrieving a Record URL using urlforrecord() function but all it gives me the complete URL string. My requirement is to hide the long URL string returned, by a text suppose "Record Link", I don't want to show that complex URL string in the mail the user gets just the text on the click of which it redirects it to the URL. Is there any way in appian to achieve this.

Thanks

  Discussion posts and replies are publicly visible

Parents Reply
  • If you want to direct to a site, you need to be a bit creative. The last path link is the same if you are using a site, but you will have to change the beginning part of the URL. For example, I extracted the long path part and concatenated the site information and /view/summary to build the correct site URL:

    concat(
      "https://mysite.appiancloud.com/suite/sites/customer-site/page/all-customers/record/",
      extract(
        urlforrecord(
          cons!MY_CUSTOMER_RECORD_TYPE,
          1
        ),
        "/item/",
        "/view/"
      ),
      "/view/summary"
    )

    Between this and what Mike suggested below, you should be able to construct the URL to use in your email.

Children