web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

lookup in different company

(0) ShareShare
ReportReport
Posted on by 625

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?

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,307 Super User 2025 Season 2 on at
    RE: lookup in different company

    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

  • CRSW Profile Picture
    625 on at
    RE: lookup in different company

    Oh yes but how can I do this to show lookup values? They are shown by reference

  • Suggested answer
    YUN ZHU Profile Picture
    95,307 Super User 2025 Season 2 on at
    RE: lookup in different company

    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

    pastedimage1674450034353v1.png

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Mohana Yadav Profile Picture
    60,993 Super User 2025 Season 2 on at
    RE: lookup in different company

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans