Good morning, I am trying to send a notification to the ERP of an external application, but I must be doing something wrong, because although no error in the code, no notification appears in ERP. What is wrong? Thank you.
Example:
Public Sub MostraNotificacao()
Dim objPlatform As New Interop.StdPlatBS900.StdPlatBS
Dim objConfApl As Interop.StdPlatBS900.StdBSConfApl = New Interop.StdPlatBS900.StdBSConfApl
Dim objStdTransac As Interop.StdBE900.StdBETransaccao = New Interop.StdBE900.StdBETransaccao
objConfApl.Instancia = "Default"
objConfApl.AbvtApl = "ERP"
objConfApl.Utilizador = "xpto"
objConfApl.PwdUtilizador = "xpto"
objConfApl.LicVersaoMinima = "9.00"
objPlatform.AbrePlataformaEmpresa("DEMO", objStdTransac, objConfApl, eTipoPlataforma, "")
objPlatform.InterfacePublico.MDI.Notificacoes.MostraMensagem("Notificação", "Teste de notificação", False)
'ou
'objPlatform.PainelNotificacoes.MostraMensagem("Notificação", "Teste de notificação", False)
objPlatform.FechaPlataformaEmpresa()
End Sub