Skip to main content
Answer

ARM Report Header

  • February 27, 2024
  • 5 replies
  • 209 views

I have a client with multiple companies in one tenant.  While you can pull an ARM report for Company A while you are in Company B, the header information displayed is still for Company B.  What is the correct formula to display the selected Company Id instead of the current Company you are in?  The default formula is:

=Report.GetDefUI('RowCompanyBAccount.AcctName')

 

Best answer by meganfriesen37

How is the user running the report for the alternate company?

  1. If you have configured a Unit Set with different Units per branch, you can use “=@UnitText
  2. If the user is picking the COMPANY when running the report, then you can use =@OrganizationName
  3. If the user is selecting a Start and/or Ending BRANCH them you can use =Report.GetBranchText(@StartBranch) or =Report.GetBranchText(@EndBranch)

Hope this helps

Megan

5 replies

meganfriesen37
Captain II
Forum|alt.badge.img+12
  • Captain II
  • Answer
  • February 27, 2024

How is the user running the report for the alternate company?

  1. If you have configured a Unit Set with different Units per branch, you can use “=@UnitText
  2. If the user is picking the COMPANY when running the report, then you can use =@OrganizationName
  3. If the user is selecting a Start and/or Ending BRANCH them you can use =Report.GetBranchText(@StartBranch) or =Report.GetBranchText(@EndBranch)

Hope this helps

Megan


  • Author
  • Freshman I
  • February 27, 2024

The user is picking the Company when running the report.  Your second suggestion worked perfectly!  Thank you.


sroberts29
Freshman II
Forum|alt.badge.img+1
  • Freshman II
  • June 3, 2025

What if the Company is hard-coded into the report design? Therefore it’s not a parameter. 
@OrganizationName is often returning no results.


meganfriesen37
Captain II
Forum|alt.badge.img+12

@sroberts29 

=Report.GetDefUI('RowCompanyBAccount.AcctName') will return the company name of the logged in company/branch when the report is run.

In the demo environment, that’s what brings back Revision Two Products as the company/branch name at the top of this report, as no company or branch is selected when running the report.
 

 


sroberts29
Freshman II
Forum|alt.badge.img+1
  • Freshman II
  • June 4, 2025

Thanks ​@meganfriesen37  - but that doesn’t work for my client. I think I’m just going to make a duplicate column set and type good old text at the top. They have a Company pre-selected in their report parameters.