title: Automate Release Action from my Graph Extension
body: <p>How can I automate the Release button from my Graph Extension, I've extended the JournalWithSubEntry graph. I added a journal voucher transaction via code, the only problem now is how do I release the transaction I've added. Below is my sample code, and it gives me the error </p>
  
  <blockquote>
    <p>cannot be accessed with an instance reference; qualify it with a type name instead in file</p>
  </blockquote>
  
  <pre><code>List&lt;GLDocBatch&gt; list = new List&lt;GLDocBatch&gt;();
  list.Add(newdoc);          
  PXLongOperation.StartOperation(this.Base, delegate() { this.Base.ReleaseBatch(list); });       
  </code></pre>