Skip to main content
Answer

How can I get url params in the customization project

  • September 29, 2024
  • 3 replies
  • 79 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"];

3 replies

Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • 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
  • September 30, 2024

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


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • 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();