How to get this Acumatica URl in code Currently i use System.Web.HttpContext.Current.Request.Url.AbsoluteUri.ToString() But some time it is null. So it not solve my purpose to get URL. Also some time PX.Data.Update.PXInstanceHelper.HostName is null
How to get this Acumatica URl in code Currently i use System.Web.HttpContext.Current.Request.Url.AbsoluteUri.ToString() But some time it is null. So it not solve my purpose to get URL. Also some time PX.Data.Update.PXInstanceHelper.HostName is null
HttpContext.Current.Request.Url.Host + HttpContext.Current.Request.ApplicationPath;
HttpContext.Current is Null than how to access the Host Name and URL.
I have already mention this in Question that is null.
Please provide other option or why it is null
Have you checked in another instance? and where are you trying to access this URL and host name in the code?
I have Press Release Button from Purchase order and check the value in Acumatica graph or graph create by us and check the value in both the graph HttpContext.Current is Null
It’s probably a matter of referencing HttpContext in a background thread (PXLongOperation) instead of the current thread: https://stackoverflow.com/a/78669334/7376238
Hyadav08 is written the code in the RELEASE button which is already part of the LongRun Operation, hence which is why request is NULL. In this case, how can we get these details in the Release button?
Hi
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.