Answers.Body: <p>Thanks for your help Coleman but I've found the strangely named &quot;edit Triggering activity&quot; which does exactly what I need.
  Cheers
  Lesley</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-09-14T04:27:32.777Z
Answers.LastActivityDate: 2023-09-14T04:27:32.777Z
Answers.UserDisplayName: LesleyJill
Body: <p>i'm planning on creating a new activity type &quot;private phone call&quot; so I can use the activity acl extension to restrict access to these by user level.
  Is there any way to achieve the same thing for emails?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-05T12:46:37.550Z
Comments.Text: By "emails" do you mean "sent emails" or "contact email addresses"?
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-05T20:52:27.000Z
Comments.Text: "Sent emails" so the activity can have access restricted by the activity acl extension. It would mean 2 "send an email" activities - one "normal" and one with viewing restricted by the extension
Comments.UserDisplayName: LesleyJill
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-06T00:56:57.107Z
Comments.Text: CiviCRM only has one type of "Sent email" activity... but once the email is sent you could enact a little bit of hook code to change the activity type to "Private email".
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-06T05:44:14.997Z
Comments.Text: Thanks Coleman would the hook apply to all sent emails or could there be a way to select, perhaps by sender. I was actually thinking civirules could achieve the same thing but I see that "change activity type" is not an available action.
Comments.UserDisplayName: LesleyJill
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-06T11:51:43.733Z
Comments.Text: A hook is custom code so yes it could select by sender or any other criteria you can write code for. And if you know enough PHP to do that, then you probably know enough to add a "change activity type" action to CiviRules, I think those actions are all pretty straightforward to write :)
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-13T05:44:12.350Z
Comments.Text: Don't know any php unfortunately - I notice search kit has "change activity type" could the code be pinched from there?
Comments.UserDisplayName: LesleyJill
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-13T14:34:18.397Z
Comments.Text: If you'd like to [work with the core team](https://civicrm.org/work-with-the-core-team) we could add that feature for you, probably just a 2-3 hour project :)
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-13T20:43:47.953Z
Comments.Text: I'd love that! Let me talk to my boss. What would the process be?
Comments.UserDisplayName: LesleyJill
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-09-14T00:48:28.703Z
Comments.Text: Sounds good. Feel free to reach out to me at coleman at civicrm.org
Comments.UserDisplayName: Coleman
Tags: <activities><acl>
Title: can there be a private email activity?
ThreadText: # can there be a private email activity?
  
  (Asked by: username_0 on 2023-09-05)
  
  i'm planning on creating a new activity type "private phone call" so I can use the activity acl extension to restrict access to these by user level.
  Is there any way to achieve the same thing for emails?
  
  **Tags:** activities, acl
  
  > **Comments:**
  > **username_1**: By "emails" do you mean "sent emails" or "contact email addresses"?  
  > **username_0**: "Sent emails" so the activity can have access restricted by the activity acl extension. It would mean 2 "send an email" activities - one "normal" and one with viewing restricted by the extension  
  > **username_1**: CiviCRM only has one type of "Sent email" activity... but once the email is sent you could enact a little bit of hook code to change the activity type to "Private email".  
  > **username_0**: Thanks username_1 would the hook apply to all sent emails or could there be a way to select, perhaps by sender. I was actually thinking civirules could achieve the same thing but I see that "change activity type" is not an available action.  
  > **username_1**: A hook is custom code so yes it could select by sender or any other criteria you can write code for. And if you know enough PHP to do that, then you probably know enough to add a "change activity type" action to CiviRules, I think those actions are all pretty straightforward to write :)  
  > **username_0**: Don't know any php unfortunately - I notice search kit has "change activity type" could the code be pinched from there?  
  > **username_1**: If you'd like to [work with the core team](https://civicrm.org/work-with-the-core-team) we could add that feature for you, probably just a 2-3 hour project :)  
  > **username_0**: I'd love that! Let me talk to my boss. What would the process be?  
  > **username_1**: Sounds good. Feel free to reach out to me at username_1 at civicrm.org  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2023-09-14. Score: 1
  
  Thanks for your help username_1 but I've found the strangely named "edit Triggering activity" which does exactly what I need.
  Cheers
  Lesley
  
  
  ---
  
  