Logon(LogonId, Password)
Allows you to log on to Sage CRM from a command prompt.
To use this method, make sure to set the External Logon Allowed option for the relevant user to true in <My Profile> | Administration | Users | Users.
Do not use this method in ASP or .NET. When this method is used, no metadata is available.
Parameters
- LogonId. Specifies the user name to log on with.
- Password. Specifies the password that matches the user name.
Return value
- <Blank string>. Indicates that logon has succeeded.
- <Error code>. Indicates that logon has failed.
Examples
var CRM = new ActiveXObject('CRM.< Installation Folder>');
CRM.Logon("<user name>", "<password>");
Allows you to start using the Sage CRM object under a specified user account. Place this code in an external JavaScript page. You can copy and paste your encrypted password from the system database. It is a good practice to create a dedicated user account for external access to the system with limited access rights.