Hi
I select a company in a lookup and depending on the selection I want to show FixedAssets in a drop down from the selected Company
How can I realize this?
Hi, you can use Record.ChangeCompany([Text]) Method to redirect references to table data from one company to another.
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/record/record-changecompany-method
Here is a simple example:
https://yzhums.com/21252/
Hope this can give you some hints.
Thanks.
ZHU
Oh yes but how can I do this to show lookup values? They are shown by reference
Hi, You can use the method below to open the record in another company for the user to select.
More details: https://yzhums.com/5985/#toc1
Hope this helps.
You can use fixedasset.changecompany(<from company>);
and repeat the records of fixedasset and insert in a tempfixedasset record.
finally you can run the page as shown above by passing the tempfixedasset record and save the selected fixed asset no. in the field.
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 3,377
Jainam M. Kothari 2,696 Super User 2025 Season 2
YUN ZHU 1,512 Super User 2025 Season 2