Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

How to show SSRS Report for a specific legal entity

(1) ShareShare
ReportReport
Posted on by 400
Hello, i have 2 legal entities, company1 and company2 in dynamics 365 F&O
I have an ssrs report that i want only to show it for company2 and  not for company1.
how it can be done?
  • Verified answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,556 Super User 2024 Season 2 on at
    How to show SSRS Report for a specific legal entity
    Hi D365FO ERP Developer,
     
    You can add like the below code on the start of your process Report method.
      changeCompany('Company2') //Default company is now 'Company2'.
      {
        CustTable custTable;
        while select custTable
        {
           //custTable is now selected in company 'Company2'.
        }
      }
    Note one should take into consideration that if you have contract parameters that read data from a non-shared table, you also need to fetch its data from the company2.
     
    Thanks,
    Waed Ayyad
     
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Layan Jwei Profile Picture
    Layan Jwei 7,264 Super User 2024 Season 2 on at
    How to show SSRS Report for a specific legal entity
    Hi D365FO ERP Developer,
     
    Did u check the suggestions provided by everyone?
    If you can give us more details please why the suggestions are not working or let us know if your issued is solved.
  • D365FO DEV Profile Picture
    D365FO DEV 400 on at
    How to show SSRS Report for a specific legal entity
    Hi rajborad,
     
    please note that both companies have the same country region.
  • Raj Borad Profile Picture
    Raj Borad 491 on at
    How to show SSRS Report for a specific legal entity
    Hi,
     
    You can use the country region code property of the Menu Item (Display/Action/Output) and set the visibality of the report based on code of the country.
     
    Thank you,
    Raj Borad
  • D365FO DEV Profile Picture
    D365FO DEV 400 on at
    How to show SSRS Report for a specific legal entity
    Hi WAEL
     
    can you provide source code if  i want to do it by code and not security role?
  • Waed Ayyad Profile Picture
    Waed Ayyad 6,556 Super User 2024 Season 2 on at
    How to show SSRS Report for a specific legal entity
    Hi,
     
    Is your issue resolved?
     
     
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,556 Super User 2024 Season 2 on at
    How to show SSRS Report for a specific legal entity
    Hi @​​​​​​​D365FO ERP Developer,
     
    You can do either by code using ChangeCompnany : By using this keyword you can change company any time and retrieve data from specific company (company2) in your case.
    Or you can create Security role for your report and use User Legal Entity Restrictions. You can check the below link:
     
    Thanks
    Waed Ayyad
     
     Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Suggested answer
    MuthukumaranAX Profile Picture
    MuthukumaranAX 2,901 on at
    How to show SSRS Report for a specific legal entity
    One way is that you can insert the records which are related to specific legal entity to avoid other company information shown in the report.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    Bharani Preetham Pe... 3,587 Super User 2024 Season 1 on at
    How to show SSRS Report for a specific legal entity
    One way is by using print management where from configuration itself this can be achieved. 
     
    Or you can do the roles and privilege configuration.
     
    Or you can directly set the condition from the code itself.
  • Verified answer
    Alireza Eshaghzadeh Profile Picture
    Alireza Eshaghzadeh 13,103 Super User 2024 Season 2 on at
    How to show SSRS Report for a specific legal entity
    Hi,
    Consider creating a dedicated SSRS report for this specific company and configuring it in Form Setup > Print management. This way, the document will run uniquely for this company, while other companies can continue using the standard SSRS.
    For projects, accounts receivable, and accounts payable, utilize Form Setup > Print management to configure SSRS or Business Document settings per company.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,703 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans