Skip to main content

Notifications

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

Cross company data access using AOT table method

Posted on by 45
Hi Team,

I've developed an SSRS report, and inside the DP class, I've wrote the query to fetch data from multiple companies which is working fine other than customer name.
 
To obtain the customer name, I've used the CustTable method as shown below. Nevertheless, I'm currently facing a problem where it solely retrieves the customer name within my present session (legal entity). I kindly request you to examine the information provided below and offer your valuable guidance. Your assistance is greatly appreciated.
 
 
1. Cross company query
2. Fetch customer name by using Table method.
 
3. Company list
4. The report output displays all details fetched from the cross company, except for the method output(from CustTable), which is currently unavailable.
  • Verified answer
    Martin Dráb Profile Picture
    Martin Dráb 230,064 Most Valuable Professional on at
    Cross company data access using AOT table method
    You indeed don't have a cross-company query for CustTable. Either wrap the call in changeCompany() block or use a crosscompany select statement (as for projTable) instead of calling find().

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans