when use BOI to connect Sage 100 ERP cloud, Set user log on return 0, the sLastErrorMsg is: The user logon or password does not match. but the same user logon and password can log on to Sage without any problem. Here is the code I have
Sub Main()
Dim oSS As ProvideX.PvxDispatch
Dim oPVX As ProvideX.Script
Try
oPVX = CreateObject("ProvideX.Script")
oPVX.Init("\\tridfs001\Sage\Sage 100 Advanced\MAS90")
oSS = oPVX.NewObject("SY_Session")
Dim RetVal As Object
RetVal = oSS.nLogon()
If RetVal = 0 Then
RetVal = oSS.nSetUser("JPAN", "passwordXX")
'Dim errorMsg As String = (oSS.sLastErrorMsg)
End If
oSS.nCleanup()
oSS.DropObject()
Catch ex As Exception
Console.WriteLine(ex.Message)
Finally
oSS.DropObject()
oSS = Nothing
oPVX = Nothing
End Try
End Sub