Validate Sage 300 user Credentials

By | July 29, 2019

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.

New Stuff: AR Adjustment – Job Related Documents introduced in Sage 300 2019.2 Web Screens

Step 1:

Include the Sage 300 Advantage DLL in the project.

Step 2:

Once the Advantage DLL is included, create the object of the Session.

Session _session = new Session ();

Step 3:

Now we will initialize the sage 300 session.

_session.Init(“”, “AS”, “AS3001”,65);

Step 4:

Now we will check the login credentials are correct or not.

if (_session.IsAccpacUserCrendentialValid(“ADMIN”, “ADMIN”) == true)

{

Valid credentials

}

Else

{

Invalid credentials

}

So using this code you can always validate the credentials.

Tags – Sage 300 ERP, Sage 300 Session, Sage 300 Login Issues.