3

For example: User 1 completes Webform 1 on Drupal to give details of a volunteering project, which when submitted creates an activity on CiviCRM.

An email then gets automatically sent to User 2 with a link to Drupal Webform 2 for them to fill out different details relating to the same volunteering activity, which when submitted, data gets added to the same activity that User 1 created on Civi, rather than creating a whole new activity.

I have read similar questions and answers but we are not working with CiviCase and I'm a Civi newbie so finding it hard to relate these solutions to our problem. Apologies if this is a bit of a basic issue but any help would be much appreciated.

2 Answers 2

1

You need a custom or temp table which holds user1_ID, user2_iD and activity_id http://book.civicrm.org/user/current/organising-your-data/custom-fields/

So when you are creating the first activity set the activity status to schedule.

Create a new activity Type for your process if needed -

You need to create an extension and use hook_civicrm_post - set the activity to completed http://wiki.civicrm.org/confluence/display/CRMDOC/Create+an+Extension

If you need more help please let me know - thanks

1

I think you can do this by just supplying the aid in the url - see http://wiki.civicrm.org/confluence/display/CRMDOC/Webform+CiviCRM+Integration

"aid=zzz: ID of the activity to autofill and update"

if you want to avoid changing which contacts are linked to the Activity then you need to also include the cid of 'user 1'in the url, so that they get loaded (privately) on the form too.

6
  • where do I find the aid?
    – GN12AD45
    Aug 12, 2015 at 8:56
  • ah true - i think we hit this before that the webform doesn't know the Activity ID at the point that it submits, hence you don't have it to send out via a webform email. is user 2 connected to the Activity at the time that it is created? if so how? or is user 2 connected to user 1 via a relationship, or even a chained relationship eg 'vol for Org A' and 'coordinator for Org A' - ie they both have Org A in common?
    – petednz - fuzion
    Aug 12, 2015 at 19:38
  • User 1 is a member of an organisation. The activity they create will be connected to the organisation but not a specific individual. User 2 is an anonymous user (the representative for an external organisation, for example) and their email address has been entered into the initial form by User 1. User 2's form is separate to User 1's form but both link to the same activity. We basically need Civi to recognise the activity has been created and automatically send out the 2nd form to User 2 through the email address entered in form 1.
    – GN12AD45
    Aug 13, 2015 at 16:07
  • How many 'current' Activities of this type might User 2 need to access?
    – petednz - fuzion
    Aug 14, 2015 at 1:41
  • User 1 will enter the form once and User 2 will also only have to enter their form once. Neither Users will need to or be able to edit their submitted activity. But User 1 will use the same form to enter a different project as an activity and the process will happen again. We have someone currently helping us to implement this process so when we come up with a solution I will try to explain how it was done.
    – GN12AD45
    Aug 14, 2015 at 9:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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