on 01-27-2005 7:46 AM
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
I have the same behaviour as you for rt_RandomUser.
I have made it work setting the UserCode to a user of Business One and UserType rt_InternalUser.
Have you already created a message into the Service Market Place? I think you should do it.
Please update this forum if you have the solution.
Regards
Trinidad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Trinidad,
I changed the UserType to rt_InternalUser.
The source code is now:
Message := SBOCOmpany.GetBusinessObject(oMessages) as Messages;
Message.MessageText := 'Text';
Message.Subject := 'Subject';
Message.Recipients.Add;
Message.Recipients.SetCurrentLine(0);
Message.Recipients.UserCode := 'Receipent';
Message.Recipients.UserType := rt_InternalUser;
Message.Recipients.SendInternal := Tyes;
If Message.Add <> 0 Then
........................
Regards,
Paul
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.