Posts

Showing posts from December, 2020

Create contact form Business Account

     ContactMaint graph = PXGraph.CreateInstance<ContactMaint>(); Contact ExistingRecord = graph.Contact.Search<Contact.bAccountID>(row.BAccountID);             if (ExistingRecord == null)             {                 Contact maincontact = graph.Contact.Insert() as Contact;         maincontact.BAccountID = row.BAccountID;                 maincontact.DisplayName = row.AcctCD;                 maincontact.LastName = row.AcctName;                 maincontact.WorkgroupID = 21;                 maincontact.Salutation = vendorExt.UsrVendorType;                 graph.Contact.Insert(maincontact);                 mai...

Create action dynamically

   public static void AddRowEnable(ARPaymentEntry graph, ARPayment row)         {             var adapter = new PXAdapter(graph.CurrentDocument);             adapter.SortColumns = new string[] { typeof(ARPayment.refNbr).Name };             adapter.Searches = new object[] { row.RefNbr };             adapter.Menu = "Process";             adapter.Arguments = new Dictionary<string, object>();             adapter.MaximumRows = 1;             List<object> list = new List<object>();             foreach (var r in graph.action.Press(adapter))             {                 list.Add(r);             }     ...

How to create symbolic link for folders

 mklink /d "c:\Program Files\Acumatica ERP\rwdev20r2\Pages\RW" "D:\GitRepos\Readywire\WebSite\Pages\RW" mklink /d "C:\Program Files\Acumatica ERP\rwdev20r2\CstPublished" "D:\GitRepos\Readywire\WebSite\CstPublished"