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?
If you have configured a Unit Set with different Units per branch, you can use “=@UnitText”
If the user is picking the COMPANY when running the report, then you can use =@OrganizationName
If the user is selecting a Start and/or Ending BRANCH them you can use =Report.GetBranchText(@StartBranch) or =Report.GetBranchText(@EndBranch)
=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.
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.