Hi @ckwiat46 The Webhook calls would normally be sent from a secure system already with the correct structures. The connected applications provides the tokenized authentication. If you do need to make each request secure, either add in logon credentials in your package with each sent, or do a Tokenized Authentication prior submitting the information. It really depends on your approach. I am glad the above helped.
For Web hooks, the information is received based on the URL it post the data to. Acumatica will consume the request and based on the config/dev, you would need to first do authentication and add it business rules.See below to start with, you would need to pass the username and/or password with your POST: private IDisposable GetAdminScope(string companyName){ var userName = "admin"; if (PXDatabase.Companies.Length > 0) userName = userName + "@" + companyName; return new PXLoginScope(userName,PXAccess.GetAdministratorRoles());} See link:https://www.acumatica.com/blog/easily-send-post-requests-to-acumatica-using-webhooks/
Hi @SadokHanini To invoke save: Base.Actions.PressSave();It is not advised to do it on the updated fields and remember each save contributes to the ERP transactions count on the license model.
Hi SadokYou need to included your Generic object, see below:public delegate IEnumerable<Batch> ReleaseDocProcDelegate<TCADocument>(JournalEntry je, ref List<Batch> batchlist, TCADocument doc);[PXOverride]public IEnumerable<Batch> ReleaseDocProc<TCADocument>(JournalEntry je, ref List<Batch> batchlist, TCADocument doc, ReleaseDocProcDelegate<TCADocument> baseMethod){ return baseMethod(je, ref batchlist, doc);}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.