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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Change Company for two companies

(0) ShareShare
ReportReport
Posted on by

HI I need to change company for just 2 companies:

while select DataArea from companyInfo
    where companyInfo.DataArea == Company1 || companyInfo.DataArea == Company2
{
    changecompany(companyInfo.DataArea)
}

Is there a better way?

I have the same question (0)
  • Martin Dráb Profile Picture
    238,745 Most Valuable Professional on at

    Better in what respect? What problem do you have with this solution?

  • brianmaric Profile Picture
    on at

    I thought there was some pre-existing functionality that handles multiple companies, but I was probably confusing it the cross-company.

    :)

  • nunomaia Profile Picture
    25 Moderator on at

    I'm not sure of your goal, but if you just want  to find record you can user a firstonly and then change company

    select firstonly from companyInfo
        where companyInfo.DataArea == Company1 || companyInfo.DataArea == Company2
    
    if (companyInfo)
    {
        
        changecompany(companyInfo.DataArea)
    }

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 401

#3
Diego Mancassola Profile Picture

Diego Mancassola 259

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans