Skip to main content
Solved

How can I get url params in the customization project

  • September 29, 2024
  • 3 replies
  • 40 views

Forum|alt.badge.img

Sample URL https://acumatica/(W(6))/Main?ScreenId=SO301000&OrderType=QT&OrderNbr=000455&Company=C20125

 

I want to get the Company from the url into the row inserting event

 

Best answer by jayson


using System.Web;

string company = HttpContext.Current.Request.QueryString["Company"];

View original
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • 20 replies
  • Answer
  • September 30, 2024


using System.Web;

string company = HttpContext.Current.Request.QueryString["Company"];


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • 2750 replies
  • September 30, 2024

Thank you for sharing your solution with the community @jayson!


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 629 replies
  • September 30, 2024

I don’t think using the request itself to get the company is the best choice. 

You can do something like this.Accessinfo.CompanyName or PXAccess.GetCompanyName();


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings