Answers.Body: <p>I think the issue in your case was that Contact 1 was not set on the form </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-21T22:10:17.700Z
Answers.Text: Thank you, Pete. For the benefit of others reading this (who don't have admin access to the site in question!), that was exactly the problem. Contact 1 didn't have anything set, and wasn't matched to "Existing Contact".
Answers.UserDisplayName: David W
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-21T21:53:22.333Z
Answers.LastActivityDate: 2018-07-21T21:53:22.333Z
Answers.UserDisplayName: petednz - fuzion
Body: <p>I have created a Webform that will be used to create CiviCRM activities for a particular (existing) client. The form is structured in such a way that the client must exist in CiviCRM first, and the person creating the Activity must select the existing client:</p>
  
  <p><a href="https://i.sstatic.net/JbrMz.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/JbrMz.png" alt="enter image description here"></a></p>
  
  <p>When I'm logged in as an administrator, and submit the form, the data correctly populates the CiviCRM database. However, when I'm logged in as a different role ("Volunteer") with much more limited permissions, the data does not get entered into the database (the webform gets submitted, and I can see the webform results when logged in as an administrator, but the data doesn't get entered into the related CiviCRM fields).</p>
  
  <p>Ideally, the Volunteer role should not be able to create new clients, and should not be able to edit any client data. The Volunteer should ONLY be able to create new activities (Client Needs).</p>
  
  <p>So in the Drupal permissions, I have things like the following turned OFF for the "Volunteer" role:</p>
  
  <ul>
  <li>CiviCRM: add contacts</li>
  <li>CiviCRM: edit all contacts</li>
  <li>CiviCRM: delete contacts</li>
  <li>CiviCRM: Delete activities</li>
  <li>CiviCRM: access CiviCRM backend and API</li>
  </ul>
  
  <p>... and I have things like the following permissions turned ON for the Volunteer Role:</p>
  
  <ul>
  <li>CiviCRM: view all contacts</li>
  <li>CiviCRM: view all activities</li>
  <li>CiviCRM: access Contact Dashboard</li>
  <li>CiviCRM: add contact notes</li>
  <li>CiviCRM: access AJAX API</li>
  </ul>
  
  <p>Clearly, I'm missing some sort of permission that the volunteer needs in order to create a new activity for a client. Can anyone point me in the right direction?</p>
  
Tags: <webform-civicrm><permissions>
Title: Drupal Webform for Activities - CiviCRM Permissions
ThreadText: # Drupal Webform for Activities - CiviCRM Permissions
  
  (Asked by: username_0 on 2018-07-21)
  
  I have created a Webform that will be used to create CiviCRM activities for a particular (existing) client. The form is structured in such a way that the client must exist in CiviCRM first, and the person creating the Activity must select the existing client:
  
  [![enter image description here](https://i.sstatic.net/JbrMz.png)](https://i.sstatic.net/JbrMz.png)
  
  When I'm logged in as an administrator, and submit the form, the data correctly populates the CiviCRM database. However, when I'm logged in as a different role ("Volunteer") with much more limited permissions, the data does not get entered into the database (the webform gets submitted, and I can see the webform results when logged in as an administrator, but the data doesn't get entered into the related CiviCRM fields).
  
  Ideally, the Volunteer role should not be able to create new clients, and should not be able to edit any client data. The Volunteer should ONLY be able to create new activities (Client Needs).
  
  So in the Drupal permissions, I have things like the following turned OFF for the "Volunteer" role:
  
  * CiviCRM: add contacts
  * CiviCRM: edit all contacts
  * CiviCRM: delete contacts
  * CiviCRM: Delete activities
  * CiviCRM: access CiviCRM backend and API
  
  ... and I have things like the following permissions turned ON for the Volunteer Role:
  
  * CiviCRM: view all contacts
  * CiviCRM: view all activities
  * CiviCRM: access Contact Dashboard
  * CiviCRM: add contact notes
  * CiviCRM: access AJAX API
  
  Clearly, I'm missing some sort of permission that the volunteer needs in order to create a new activity for a client. Can anyone point me in the right direction?
  
  **Tags:** webform-civicrm, permissions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-07-21. Score: 1 | Accepted answer
  
  I think the issue in your case was that Contact 1 was not set on the form
  
  > **Comments:**
  > **username_0**: Thank you, Pete. For the benefit of others reading this (who don't have admin access to the site in question!), that was exactly the problem. Contact 1 didn't have anything set, and wasn't matched to "Existing Contact".  
  
  ---
  
  