Hi All,
I've inherited a legacy where users in our custom CRM can click a button, GP 10 opens and 'automatically' logs them in. All is working in our current environment, however servers need replacing and I have to move the GP databases to a new SQL Cluster.
Some quick points:
... try { string strCode; string strCompileError; short shrResult;
shrResult = GPApplication.SetDataValue("'User ID' of window Login of form Login", pUserID); shrResult = GPApplication.SetDataValue("Password of window Login of form Login", pPassword);
strCode = "run script field 'OK Button' of window Login of form Login;";
GPApplication.ExecuteSanscript(strCode, out strCompileError);
System.Threading.Thread.Sleep(2000);
shrResult = gpApp.SetDataValueEx("'(L) Company Names' of window 'Switch Company' of form 'Switch Company'", RetrieveXMLValue("CONSTANT_LOGIN"), 1); strCode = "run script field 'OK Button' of window 'Switch Company' of form 'Switch Company';";
GPApplication.ExecuteSanscript(strCode, out strCompileError); |
Now I know what your going to say, "When you moved over the logins and SQL accounts from the old SQL Server and modified the passwords you put them out of sync, so of course authentication will fail!"
Within the CRM a password can be reset by an administrator, when the sa account is also logged into GP the integration code, updates (don't completely understand how with all the different encryptions) the GP password. Therefore the next time a CRM use attempts to open GP through the CRM the credentials should be in sync.
Any ideas, assistance would be of great help.
Questions:
I've followed the following articles to assist with getting me this far:
Cheers,
Dave
*This post is locked for comments
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,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156