Hi,
I can create dynamic GP company from GP Utilities. But I wanted to create GP company using C# Code, Is there any way to do this.
Thanks
Hi,
I can create dynamic GP company from GP Utilities. But I wanted to create GP company using C# Code, Is there any way to do this.
Thanks
Looking at the script, we're actually passing the following:
The supplied parameters and their values are provided to the Add-CompanyDatabase cmdlet:
-GPClientDirectory “C:\Program Files (x86)\Microsoft Dynamics\GP2016”
-SqlAdmin “sa”
-SqlAdminPassword “password”
-SqlServerName “2016R1-SQL\GP”
-CompanyName “azurecurve Publishing”
-CompanyDbName “A16R1”
-SqlMdfFilePath “C:\SQLServer\Data\”
-SqlMdfFileName “GPSA16R1Dat.mdf”
-SqlLdfFilePath “C:\SQLServer\Data\”
-SqlLdfFileName “GPSA16R1Dat.ldf”
When creating a new company database, after logging into GP Utilities, we're just entering the Company ID and name, then the names and paths for the MDF and LDF files, that's about it. All of that information is being passed here.
What it won't do is any of the options to load shipping methods, default chart of accounts or copy access from another company, as I don't see those variables mentioned at all.
I found more information in the following PDF file:
download.microsoft.com/.../GPPowerShell.pdf
Thanks
Interesting response Derek. How do you handle the series of prompts that are presented by GP Utilities as you create a company?
I wanted to add to the PowerShell option, as referenced in this blog:
I know it isn't the C# that you mentioned, but maybe another option if you're looking to mass-create company databases, such as we've seen hosting partners do.
Thanks
I think I've seen someone do this in order to mass create company databases for Dynamics GP, but I want to say it was more PowerShell than C#. Either case we don't have any sample code to create a company database for Dynamics GP and would only support through GP Utilities.
There may be someone on the forums here that has done this and will have some information.
Why?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156