Skip to main content
witoldw0001
May 30, 2022
Question

Embed record link in an e-mail

  • May 30, 2022
  • 8 replies
  • 0 views

Hello,

I am currently working on an application for training purposes. I have a process for adding a record and editing it. I had a sub-process for both, where I am sending an email to a user group whenever a record has been added or edited. I was able to make parts of the email dynamic (e.g. "Information about [dynamicName] has been [changed/added]), but I would like to embed a record summary view link in that email, so that users can navigate straight to the updated record from that email. Now, the urlforrecord() function generates a working URL, but it links to Tempo, and not the summary view of my record. I have been trying a few things, but nothing seems to work. I would be very much obliged if someone helps me figure this out. To sum up: I need to dynamically generate a URL to a record summary view on my site to embed it within the email body.

Thanks!

8 replies

May 30, 2022

Your could try something like this,

substitute(
  text:urlforrecord(
            recordType: cons!RECORD_TYPE, 
            recordIds:ri!recordId
        ),
  find: "https://YOUR_APPIAN_SITE/suite/tempo/records/item/", 
  replace_with:"https://YOUR_APPIAN_SITE/suite/sites/YOUR_SITE/page/YOUR_PAGE/record/" 
)

This uses the substitute() function to replace the tempo portion of the URL with your sites record URL.

witoldw0001
July 3, 2022

Thank you! I will definitely try it out!

sarahz7197
February 9, 2024

Has this worked for others? I'm currently trying to utilize this same function: 

But am coming up with the following error: