In this blog, we are to see how we can validate the Sage user credentials applied for login into the Sage 300 using Advantage API without creating session.
This would be a useful thing for the purpose of the organizational security purpose.
Below are the steps which will guide through how we can check the user credentials with the Sage 300.
Include the Sage 300 Advantage DLL in the project.
Once the Advantage DLL is included, create the object of the Session.
Session _session = new Session ();
Now we will initialize the sage 300 session.
_session.Init(“”, “AS”, “AS3001”,65);
Now we will check the login credentials are correct or not.
if (_session.IsAccpacUserCrendentialValid(“ADMIN”, “ADMIN”) == true)
So using this code you can always validate the credentials.
Tags – Sage 300 ERP, Sage 300 Session, Sage 300 Login Issues.