title: Trying to send a document through a trigger
body: <p>I'm currently trying to automate the process of creating a docusign document and sending it by putting it into an apex trigger. I have managed to get the docusign api (via WSDL) into my org, and now I'm trying to add the code into the trigger to send out the document. Without pasting the entire code here, I've been following this <a href="http://developer.force.com/cookbook/recipe/accessing-docusign-api-from-salesforcecom-to-send-contracts-for-esignatures" rel="nofollow">tutorial</a> and have gotten all of the required code into my trigger. Unfortunatly, when I run it, I get this error: </p>
  
  <pre><code>11:40:49.965 (12965647595)|FATAL_ERROR|System.VisualforceException: Getting content from within triggers is currently not supported.
  
  Trigger.OpportunityTrigger: line 109, column 1
  </code></pre>
  
  <p>Does this mean that it's not possible to send a document in a trigger? The tutorial sends it through a controller, is that the only currently supported method?</p>
  
  <p>Thank you for any help you can give me!</p>
  
  <p><strong>EDIT:</strong>
  So I've gotten past that error (using a different <a href="https://www.facebook.com/note.php?note_id=482443049344" rel="nofollow">tutorial</a>), and am now getting this error. </p>
  
  <pre><code>System.CalloutException: Web service callout failed: WebService returned a SOAP Fault: This User lacks sufficient permissions. User does not have the permision to the CreateEnvelopeFromTemplates method faultcode=soap:Client faultactor=https://demo.docusign.net/api/3.0/dsapi.asmx
  </code></pre>
  
  <p>This appears to be a problem with the Docusign user I am using for sending this document. I am currently using <code>CreateEnvelopeFromTemplates</code> to try and send a templated document out to up to 5 recipients. </p>