API
Version 7.x > API > Retrieve the inbox messages from a specific user View modes: 
User avatar
Member
Member
iacido-gmail - 1/9/2014 5:14:20 PM
   
Retrieve the inbox messages from a specific user
Hello friends,

I'm trying to retrieve the inbox/outbox messages from a specific user.

I could not find a method to accomplish such task, neither documentation where sample code or hints.

Any hint or help is always welcome.

Thanks in advance.

User avatar
Kentico MVP
Kentico MVP
Accepted solutionAccepted solution
Brenden Kehren - 1/9/2014 7:15:42 PM
   
RE:Retrieve the inbox messages from a specific user
You might find what you're looking for in the API examples. I believe you can simply set your WHERE statement to look something like this:
WHERE MessageSenderUserID = 45 OR MessageRecipientUserID = 45
This would get all messages where user 45 sent or received a message.

User avatar
Member
Member
iacido-gmail - 1/15/2014 11:24:31 AM
   
RE:Retrieve the inbox messages from a specific user
worked as expected! thank you :)