Skip to Content
0
Former Member
Jan 27, 2005 at 07:46 AM

Messages object

33 Views

Hi,

I am trying to send a message through the DI API 2004 and i get the following error "No addressee selected for alert". With the 6.5 API everything worked fine.

Here is the code (in delphi):

Message := SBOCOmpany.GetBusinessObject(oMessages) as Messages;

Message.MessageText := 'Text';

Message.Subject := 'Subject';

Message.Recipients.Add;

Message.Recipients.SetCurrentLine(0);

Message.Recipients.UserCode := 'user';

Message.Recipients.UserType := rt_RandomUser;

Message.Recipients.SendInternal := Tyes;

If Message.Add <> 0 Then

...............

Anybody ideas?

Thanks,

Paul