Skip to main content
Answer

How can I redirect the user to Acumatica's landing page?

  • April 7, 2024
  • 4 replies
  • 167 views

aaghaei
Captain II
Forum|alt.badge.img+10

Hello Community,

Any idea how can I redirect the user to Acumatica’s landing page (Home ScreenID=00000000)?

Best answer by aaghaei

This is what I ended up doing and seems to work just fine.
 

throw new PXRedirectToUrlException(PXSiteMap.Provider.FindSiteMapNodeByScreenID("00000000").Url, PXBaseRedirectException.WindowMode.Same, "Redirect");

 

4 replies

aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • Answer
  • April 7, 2024

This is what I ended up doing and seems to work just fine.
 

throw new PXRedirectToUrlException(PXSiteMap.Provider.FindSiteMapNodeByScreenID("00000000").Url, PXBaseRedirectException.WindowMode.Same, "Redirect");

 


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • April 7, 2024

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


  • Freshman I
  • February 25, 2025

Hi,

I was trying to implement the above solution but getting an error regarding aspx, please see the below image: - 


can you please tell me where to implement the provided solution above. As I think, I have applied it on the wrong method or function .?
 


aaghaei
Captain II
Forum|alt.badge.img+10
  • Author
  • Captain II
  • February 25, 2025

@Dhruv  You can add this as a function to a helper or similar class if you have one and then call it anywhere in your C# code you need it or just directly use in the graph extension code. Potential places that access validations are bypassed are "First", "Previous", "Next", "Last", "DropDown", "ReloadPage", "Cancel" so you will need to check the action name and if it is any of the above then trigger the code.