Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

409
Views
Aumatica - Event When File is Attached to Document

I'm looking to run a method when a file is attached to a document in Acumatica (POOrder in this case). Essentially an event that is fired when a file is attached.

Through my research I was not able to find any documentation or similar questions that relate so I am unable to provide any code.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

File upload within the Acumatica system is done through the UploadFileMaintenance graph. The data record that is referenced is UploadFile

You can accomplish your goal of "run a method when a file is attached to a document in Acumatica" a variety of ways.

You can add an event handler to UploadFileMaintenance via an extension as seen below

public class UploadFileMaintenanceExtension : PXGraphExtension<UploadFileMaintenance>
{
    public virtual void __(Events.RowInserting<UploadFile> e)
    {
    }

    public virtual void __(Events.RowInserted<UploadFile> e)
    {
    }
}

Actions can then be determined based on the files origination information ect.

Inserting Information

Similarly you can add an event for file saving specific to PO with the following

public class POOrderEntryExtension : PXGraphExtension<POOrderEntry>
{
    public override void Initialize()
    {
        PXGraph.InstanceCreated.AddHandler<UploadFileMaintenance>((graph) =>
        graph.RowInserting.AddHandler<UploadFile>((sender, e) =>
        {
            //Your code here
        }));

        base.Initialize();
    }
}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!