Skip to main content
smathew4
Contributor ⭐️⭐️⭐️⭐️
Jun 18, 2021 3:59 PM UTC
Solved

Need to generate a URL to a Timeline Activity

Hi all,

I am pushing to a Slack channel when a Timeline Activity of a certain type is created. I would like to include a URL for the user to click through back into Gainsight and the Timeline Activity. I can’t see any information on how to generate this URL. (For example, as a Salesforce Admin, it’s easy to create a Salesforce link by adding the record ID to the end of a standard Salesforce address)

Does anyone have a suggestion on how I can do this? I am currently querying Timeline through the Rules Engine, and pushing to an External Action to get it into Slack.

Thanks!

heather_hansen
VIP ⭐️⭐️⭐️⭐️⭐️
Jun 18, 2021 4:56 PM UTC

@smathew4 If you go to a Timeline activity, you should see the 3 dots in the top right, and there’s an option to Copy Link, then you can just use the beginning of that and parse the Activity ID to the end (after the last slash) to use in your External Action.

 

4 replies

heather_hansen
VIP ⭐️⭐️⭐️⭐️⭐️
Jun 18, 2021 4:56 PM UTC

@smathew4 If you go to a Timeline activity, you should see the 3 dots in the top right, and there’s an option to Copy Link, then you can just use the beginning of that and parse the Activity ID to the end (after the last slash) to use in your External Action.

 

Translate
smathew4
smathew4Author
Contributor ⭐️⭐️⭐️⭐️
Jun 18, 2021 5:20 PM UTC

Yeah, I ended up getting it and used this prefix to create the click-thru url

https://SFDCMYDOMAIN--jbcxm.SFDCINSTANCE.visual.force.com/apex/JBCXM__ActivityTimeline#/activities/ & GSID

I actually grabbed this by creating a Timeline report, hovering over the subject and copying the link address. It is a cleaner URL that what you get if you use Copy Link on the Activity page

Translate
spencer_engel
Expert ⭐️
Jun 22, 2023 2:24 PM UTC

You both just saved me a ton of time @heather_hansen and @smathew4. Thanks so much!

Translate
Contributor ⭐️⭐️
Oct 29, 2024 6:16 AM UTC

Logging in through SFDC, is there a way to code the URL in Lightning?

Translate