Skip to main content
Contributor ⭐️⭐️⭐️
September 15, 2026
Question

How can I target an email campaign for last activity date by a specific custom role?

  • September 15, 2026
  • 3 replies
  • 52 views

We have multiple gated “microcommunities” on our community site, each with its own custom role. Is there a way to target an email campaign so that it is sent based on a user’s last activity date for one of their custom roles?

For example, let’s say a user is in Community A (with custom role A) and Community B (with custom role B). The user was active in Community A in June 2026, and active in Community B in July 2026. Is it possible to send an email campaign that will include this user because it targets users who haven’t been active in Community A since June, even though the user has been active in Community B in July?

I hope I’ve explained this well. I think my question focuses on if it’s possible to refine the “last activity date” in combination with a specific custom role. Thank you!

    3 replies

    Chris Hackett
    Helper ⭐️⭐️⭐️
    September 15, 2026

    I think you might be able to do this by creating a Segment which includes ‘Last Activity’ date range filter and ‘Custom Role’ filter like below. Then you would just choose that segment to send the email campaign to.

     

    Chris
    aiken
    Helper ⭐️⭐️⭐️
    September 16, 2026

    Hi,
    I was thinking the same solution as ​@Chris Hackett mentioned, but I am still wondering one thing.

    > a Segment which includes ‘Last Activity’ date range filter and ‘Custom Role’ filter like below.

    Is this “Last Activity”,,, is this “the last activity of all communities that he belongs?” or “the last activity of the filtered Role(community) by 2nd condition?”

    Answer for the original question from ​@hilaryschuldt is depending on it,,, it needs to be tested..

    aiken
    Helper ⭐️⭐️⭐️
    September 16, 2026

    Let me add one point,,,
    I just take a look at this page, and “Last Activity at” field is exist in “Community {community-id} User Object” so that each “Last Activity at” is kept differently in each community-id User object, so there should be the way to filter out based on each “Last Activity at”...