Answers.Body: <p>I do not think there is an action yet to do what you want it to do. It is not a complicated action though, so it should be relatively easy to add. Do you have any PHP skills? If so, it would be great if you could do a PR and add the action? There is documentation on how to create an action here: <a href="https://docs.civicrm.org/civirules/en/latest/create-your-own-action/" rel="nofollow noreferrer">https://docs.civicrm.org/civirules/en/latest/create-your-own-action/</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-05T13:24:55.380Z
Answers.Text: Ok, I'll pit my limited skills at it.
Answers.UserDisplayName: wil_SRQ
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-06T18:15:57.833Z
Answers.Text: You're right, simple enough. I'll submit a PR soon. Unfortunately it didn't accomplish my end goal. Turns out that assigning an activity via the API (v3) does NOT send the assignee the nice email they get when the assignment is via GUI.
Answers.UserDisplayName: wil_SRQ
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-07T18:45:34.840Z
Answers.Text: Erik - ask @jaapjansma who helped me with https://lab.civicrm.org/dev/core/-/issues/1767. I am not conversant in git. This time I think I managed to get my changes into a clone of civirules - https://lab.civicrm.org/SRQ_civicrm/civirules. I can't, however, figure out how to create a PR! Would appreciate any help/guidance you can offer.
Answers.UserDisplayName: wil_SRQ
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-10T06:44:21.357Z
Answers.Text: You could potentially send the message from your action using  the Email API?
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-10T06:51:38.487Z
Answers.Text: In your fork, got to the + in the top blue bar. There will be an option to create a new merge request?
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-10T15:21:56.373Z
Answers.Text: Re. the email, I found that webform-civicrm used CRM_Case_BAO_Case::sendActivityCopy() so mimicked that.
  Re. the merge request, many thanks for the instructions. I created https://lab.civicrm.org/extensions/civirules/-/merge_requests/72.
Answers.UserDisplayName: wil_SRQ
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-10T15:34:27.250Z
Answers.Text: I have merged the Merge Request. Thanks!
Answers.UserDisplayName: Jaap Jansma - CiviCooP
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-05T06:52:09.363Z
Answers.LastActivityDate: 2020-08-05T06:52:09.363Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I am successfully triggering on &quot;Activity is added; Trigger for Activity Source&quot; and updating the status of the activity. Now I need to assign the activity to the Source contact in the activity so they get the email notification with the activity details. Can't find an action to do that. I can send an email, but that lacks all the activity's details.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-08-05T00:31:19.290Z
Comments.Text: The Add Action > Select Action dropdown has an option for "Activity Contact Record Type (Assignee, Source or Target)" which maybe relates to this. Unfortunately selecting it results in error "Not a valid action, action class is missing."
Comments.UserDisplayName: wil_SRQ
Tags: <activities><civirules>
Title: Can CiviRules assign an activity?
ThreadText: # Can CiviRules assign an activity?
  
  (Asked by: username_0 on 2020-08-05)
  
  I am successfully triggering on "Activity is added; Trigger for Activity Source" and updating the status of the activity. Now I need to assign the activity to the Source contact in the activity so they get the email notification with the activity details. Can't find an action to do that. I can send an email, but that lacks all the activity's details.
  
  **Tags:** activities, civirules
  
  > **Comments:**
  > **username_0**: The Add Action > Select Action dropdown has an option for "Activity Contact Record Type (Assignee, Source or Target)" which maybe relates to this. Unfortunately selecting it results in error "Not a valid action, action class is missing."  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-08-05. Score: 2 | Accepted answer
  
  I do not think there is an action yet to do what you want it to do. It is not a complicated action though, so it should be relatively easy to add. Do you have any PHP skills? If so, it would be great if you could do a PR and add the action? There is documentation on how to create an action here: <https://docs.civicrm.org/civirules/en/latest/create-your-own-action/>
  
  > **Comments:**
  > **username_0**: Ok, I'll pit my limited skills at it.  
  > **username_0**: You're right, simple enough. I'll submit a PR soon. Unfortunately it didn't accomplish my end goal. Turns out that assigning an activity via the API (v3) does NOT send the assignee the nice email they get when the assignment is via GUI.  
  > **username_0**: Erik - ask @jaapjansma who helped me with https://lab.civicrm.org/dev/core/-/issues/1767. I am not conversant in git. This time I think I managed to get my changes into a clone of civirules - https://lab.civicrm.org/SRQ_civicrm/civirules. I can't, however, figure out how to create a PR! Would appreciate any help/guidance you can offer.  
  > **username_1**: You could potentially send the message from your action using  the Email API?  
  > **username_1**: In your fork, got to the + in the top blue bar. There will be an option to create a new merge request?  
  > **username_0**: Re. the email, I found that webform-civicrm used CRM_Case_BAO_Case::sendActivityCopy() so mimicked that. Re. the merge request, many thanks for the instructions. I created https://lab.civicrm.org/extensions/civirules/-/merge_requests/72.  
  > **username_2**: I have merged the Merge Request. Thanks!  
  
  ---
  
  