title: Customizing SendARInvoiceMemo action in ARInvoiceEntry
body: <p>I have created an extension for ARInvoiceEntry with a custom action that replicates SendARInvoiceMemo but adds an additional attachment to the invoice notification email.</p>
  
  <p>This works as expected with an extra button, but I need it to replace the original action. I have used the same name for it to overload the existing one but it doesn't seem to work.</p>
  
  <p>How can I force Acumatica to use my action in the GraphExtension instead of the original?</p>
  
  <p>Here is my extended action code:
  </p>
  
  <pre><code>public PXAction&lt;ARInvoice&gt; sendARInvoiceMemo;
  
  [PXUIField(DisplayName = "+Send AR Invoice/Memo+", MapEnableRights = PXCacheRights.Select, MapViewRights = PXCacheRights.Select)]
  [PXLookupButton]
  public virtual IEnumerable SendARInvoiceMemo(PXAdapter adapter,
      [PXString]
      string reportID)
  {
      var cfdi = ARInvoiceXmlDownload.GetXmlAttachment(this.Base, this.Base.Document.Current);
  
      if (cfdi == null)
      {
          return Base.SendARInvoiceMemo(adapter, reportID);
      }
  
      ARInvoice invoice = this.Base.Document.Current;
      if (reportID == null) reportID = "AR641000";
      if (invoice != null)
      {
          Dictionary&lt;string, string&gt; mailParams = new Dictionary&lt;string, string&gt;();
          mailParams["DocType"] = invoice.DocType;
          mailParams["RefNbr"] = invoice.RefNbr;
  
          var sent = false;
          var activities = PX.Objects.EP.ReportNotificationGenerator.Send(reportID, mailParams);
          var updatedActivities = new List&lt;EPActivity&gt;();
          foreach (var act in activities)
          {
              AddCfdi(act, cfdi.UID);
              sent = true;
          }
  
          if (sent)
          {
              this.Base.Caches&lt;NoteDoc&gt;().Persist(PXDBOperation.Insert);
          }
          else
          {
              throw new PXException(ErrorMessages.MailSendFailed);
          }
  
          this.Base.Clear();
          this.Base.Document.Current = this.Base.Document.Search&lt;ARInvoice.refNbr&gt;(invoice.RefNbr, invoice.DocType);
      }
      return adapter.Get();
  }
  </code></pre>
  
  <p><strong>Edit for clarification as requested</strong></p>
  
  <p>This is for Acumatica v5.30.2741</p>
  
  <p>This is the action in Invoices and Memos (AR301000) I need to replace:
  <a href="https://i.stack.imgur.com/NVRRV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NVRRV.png" alt="This is the action in Invoices and Memos (AR301000) I need to replace"></a></p>
  
  <p>It is also used in Print Invoices and Memos (AR508000) to send several invoices in a process:
  <a href="https://i.stack.imgur.com/3NYcO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3NYcO.png" alt="It is also used in Print Invoices and Memos (AR508000) to send several invoices in a process"></a></p>