--- title: "Track Last Activity on People with Specific Roles" slug: "track-last-activity-on-people-with-specific-roles" updated: 2026-11-23T12:31:59Z published: 2026-11-23T12:31:59Z canonical: "support.gainsight.com/track-last-activity-on-people-with-specific-roles" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Track Last Activity on People with Specific Roles Gainsight NXT ## Overview It is really important to stay in touch with your customers regularly. However, it is difficult to manually track the list of customers with whom you have not had an interaction. This article uses the **Activity Attendee** object to configure a rule which creates a CTA, if users have not interacted with the Executive sponsor of a Company for the last 90 days. ## Create Rule To create the rule: 1. Navigate to ***Administration > Rules Engine****.* 2. Click **+ RULE**. The New Rule window is displayed. 3. Perform the following tasks: - **Rule For**: Select **Account**. - **Rule Name**: Enter a name for the rule. - **Folder**: Select a folder for the rule. - *(Optional)* **Description**: Enter a description for the rule. 4. Click **NEXT**. ![1. Create_rule.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/1._Create_rule.png?sv=2026-02-06&spr=https&st=2026-11-24T19%3A01%3A19Z&se=2026-11-24T20%3A01%3A19Z&sr=b&sp=r&sig=84AovQ9UiD7CmLyWcgU0OrzFMtHrwhc6byUqEYynm30%3D) 5. Click **DATASET**. 6. Select **Matrix Data** as the source. 7. Select **Activity Attendee** as the source object. 8. Include the following fields in the **Show** section: - **Activity Id -> Activity Date** - **External Attendee GS Id -> Company ID -> CSM** - **Activity Id -> Account Id -> GSID** - **External Attendee GS Id -> Role** - **Activity Id -> Account Id** ![Snag_51d775e9.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Snag_51d775e9.png?sv=2026-02-06&spr=https&st=2026-11-24T19%3A01%3A19Z&se=2026-11-24T20%3A01%3A19Z&sr=b&sp=r&sig=QUwLGVjW6f7NPFRpMTtCrV%2Bn%2FPvwn7uiTB%2BqHpa9zoc%3D) 9. Use the Max aggregation on the **Activity Date** field. This provides you the latest date on which an activity was performed. ![3. Modifing_show_fields.GIF](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/3._Modifing_show_fields.GIF?sv=2026-02-06&spr=https&st=2026-11-24T19%3A01%3A19Z&se=2026-11-24T20%3A01%3A19Z&sr=b&sp=r&sig=78jS%2F%2FvFfPsO0NsolnMibRMmlLnUlMah%2Fk70Lzo2qXM%3D) 10. In the Filters section, drag and drop the **External Attendee GS Id -> Role** field. 11. Select the **Executive Sponsor** option. 12. Drag and drop the **Activity Id -> Account Id -> Name** field. 13. Enter **Abbett Corp**. as the company name. 14. Drag and drop **Activity Date** field to the filters section. 15. Select **!= ,** **Subtract N Days from Rule Date** and enter **90**. ![4. Filters.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/4._Filters.png?sv=2026-02-06&spr=https&st=2026-11-24T19%3A01%3A19Z&se=2026-11-24T20%3A01%3A19Z&sr=b&sp=r&sig=%2BlkgmUi%2FltBUHjULTmx2vSM0ng%2BBoz73tP40BELunHQ%3D) 16. Click **SAVE** ## Setup Rule Action This section explains how to setup the Create CTA rule action for the above Dataset. 1. Click **Setup Action**. 2. Click **+ ACTION**. 3. Select **Call to Action** as the Action type. 4. Select the mandatory fields of the CTA. 5. Click **SAVE**.