Skip to main content
Question

Can we insert an activity in Timeline with API and associate it to a CTA?

  • January 30, 2024
  • 5 replies
  • 300 views

Padolfi
Forum|alt.badge.img+6
  • Contributor ⭐️⭐️⭐️⭐️

Hi everyone, 

I’m trying to insert an activity to the Timeline and have it be linked to a specific CTA. In my use case, these are onboarding CTAs that are linked to the opportunity through the GS opportunity object, and the users are logging their events automatically from Google Calendar to SFDC. 

Right now they need to manually log them again in Gainsight if they want the link to the CTA, and the OOTB sync does not link it to the CTA, but I can easily find them with a rule and call the API to post these since I have the link to the CTA through the “Cockpit Associated Records” object. 

My only problem is that when I call the Timeline API I can only pass “Company” or “Relationship” as a Context Name value. From what I see in the reports, the value should be “CTA” and the Context Id should be the CTA GSID, both of which I have. 

So is there a way to actually do this or is this an improvement request for the API?

5 replies

Padolfi
Forum|alt.badge.img+6
  • Author
  • Contributor ⭐️⭐️⭐️⭐️
  • January 30, 2024

Also tried inserting the activity and then updating the context but no luck either.., 


Forum|alt.badge.img
  • Contributor ⭐️
  • September 20, 2024

We need this as well.  @Padolfi have you heard back on this at all?


alizee
Forum|alt.badge.img+13
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • February 18, 2025

 


  • Contributor ⭐️
  • July 8, 2025

I also have a need for adding timeline activity records to CTAs. I found that manually created activities have the CTA ID populated in a field called “LinkedCTAId”. I can include this field in a POST to endpoint “v1/ant/es/activity”, which is successful in creating the record, but this field does not populate.

Ultimately, what I’m trying to do is to have CTAs for renewal ownership/management. Using Programs to automate email follow up and renewal signoff status, the CSM could look see the activities tied directly to this effort (e.g. 1st email sent, email not opened, 2nd email sent, renewal signed, etc).

 


Forum|alt.badge.img
  • Contributor ⭐️⭐️⭐️⭐️
  • June 8, 2026

We also have a use case where CSMs document in custom fields in a CTA, and the business wants to create an update timeline with the details in these custom fields. The idea is to avoid CSMs having to log a timeline on the CTA and duplicate the work. The fields on the CTA are mandatory to close whereas we cannot make creating a timeline on the CTA mandatory. It would be ideal to link the timeline created via the API back to the CTA. Also, just had a ticket with Gainsight asking them to update their timeline API documentation where CTA is one of the allowed context names in the API, however they confirmed via the ticket that it is not actually working.