2

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.

1
  • 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." Aug 5 '20 at 0:31
2

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/

7
  • Ok, I'll pit my limited skills at it. Aug 5 '20 at 13:24
  • 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. Aug 6 '20 at 18:15
  • Erik - ask @jaapjansma who helped me with 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 - 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. Aug 7 '20 at 18:45
  • You could potentially send the message from your action using the Email API? Aug 10 '20 at 6:44
  • 1
    In your fork, got to the + in the top blue bar. There will be an option to create a new merge request? Aug 10 '20 at 6:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.