Skip to main content
Solved

How can I get url params in the customization project

  • Sep 29, 2024 11:54 PM UTC
  • 3 replies
  • 124 views
  • Translate All

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

3 replies

Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • Answer
  • Sep 30, 2024 2:47 AM UTC


using System.Web;

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

Translate

Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • Sep 30, 2024 4:04 AM UTC

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

Translate

Dmitrii Naumov
Community Manager
Forum|alt.badge.img+7

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();

Translate