Skip to main content

Notifications

Announcements

No record found.

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,198 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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans