Record Link and Sites

We have  a group that uses a site.  Here is the use case we are trying to resolve:

 

  1. User submits a new request
  2. Request generates a  new record
  3. Email notification is sent to submitter with a record link to there request
  4. Clicking this link takes the user to a record that opens in Tempo. (Instead of the site they work in)

Is there a way to setup so that the record opens in the site rather than in Tempo?  This has been one of our major stumbling blocks in using sites as certain actions take a user who works exclusively in sites out into Tempo.

 

Thanks for any feedback.

  Discussion posts and replies are publicly visible

Parents
  • Hi Mike,

    I assume you are generating the link in a Send Email smart service.  I created a rule for my own use case with this scenario which will create the URL. You should be able to replace your current URL with this rule 

    Rule Inputs:

    • recordType (RecordType)
    • recordIdentifier (Any Type)
    • siteWebAddressIdentifier (Text)
    • pageWebAddressIdentifier (Text)
    • viewStub (Text)

    Code: 

    with(
      local!recordURL: urlforrecord(
        ri!recordType,
        ri!recordIdentifier
      ),
      local!recordGUID: keyval(
        local!recordURL,
        "item",
        "/",
        "/"
      ),
      "https://" & extract(
        local!recordURL,
        "//",
        "/tempo"
      ) & "/sites/" & ri!siteWebAddressIdentifier & "/page/" & ri!pageWebAddressIdentifier & "/record/" & local!recordGUID & "/view/" & ri!viewStub
    )

Reply
  • Hi Mike,

    I assume you are generating the link in a Send Email smart service.  I created a rule for my own use case with this scenario which will create the URL. You should be able to replace your current URL with this rule 

    Rule Inputs:

    • recordType (RecordType)
    • recordIdentifier (Any Type)
    • siteWebAddressIdentifier (Text)
    • pageWebAddressIdentifier (Text)
    • viewStub (Text)

    Code: 

    with(
      local!recordURL: urlforrecord(
        ri!recordType,
        ri!recordIdentifier
      ),
      local!recordGUID: keyval(
        local!recordURL,
        "item",
        "/",
        "/"
      ),
      "https://" & extract(
        local!recordURL,
        "//",
        "/tempo"
      ) & "/sites/" & ri!siteWebAddressIdentifier & "/page/" & ri!pageWebAddressIdentifier & "/record/" & local!recordGUID & "/view/" & ri!viewStub
    )

Children