Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Selecting the Default Company in Dynamics 365 Finance and Operations (D365FO)

(1) ShareShare
ReportReport
Posted on by 5
Hi, I am new to developing in D365FO, and I have written a few lines of code. I want to set the default company as USP2, but I don't know how to do it. How can I change my default company in D365FO?
 
 
 
 
 
 
 
 
 
  • Waed Ayyad Profile Picture
    Waed Ayyad 6,493 Super User 2024 Season 2 on at
    Selecting the Default Company in Dynamics 365 Finance and Operations (D365FO)
    Hi,

    Is your issue resolved?  If yes, mark the answers that helped you as verified.

    Thanks
    Waed Ayyad
  • Raj Borad Profile Picture
    Raj Borad 491 on at
    Selecting the Default Company in Dynamics 365 Finance and Operations (D365FO)
    Hi,
     
    I think, You can also change the company in your project Property to run the Class in that specific company.
     
     
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,493 Super User 2024 Season 2 on at
    Selecting the Default Company in Dynamics 365 Finance and Operations (D365FO)
    Hi,
     
    based on the error message, you should use changecompany in order to update table in the other legal entity. Also as Ramit said you can define the default legal entity for each user, and you can change it from the gear button in the user session.
     
     
    Thanks
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,642 Super User 2024 Season 2 on at
    Selecting the Default Company in Dynamics 365 Finance and Operations (D365FO)
    Hi,
     
    Can you explain what exactly you want to achieve? Do you want to run a script for changing a parameter? If so, why can't a user simply set the correct value via the user interface?
    In case you want to change the default company, should this be done for one or all users?
  • Selecting the Default Company in Dynamics 365 Finance and Operations (D365FO)
    A quick tip. Another way is to use the "changecompany" keyword. That's a prettier way to do data manipulation in other legal entities that the one you are currently in  (-:
     
    I have written an example here:
     
    You can also change the launch legal entity when you debug by changing the parameters in your Visual Studio project.
  • Suggested answer
    Ramit Paul Profile Picture
    Ramit Paul 22,293 Most Valuable Professional on at
    Selecting the Default Company in Dynamics 365 Finance and Operations (D365FO)
    Hi,
     
    It is driven by the below setup under users form.
     
     

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans