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?
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
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.
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.