0

I want to use the fields of the ChatterMessage object. So I made an instance of ChatterMessage but then where do I have to make a trigger for ChatterMessage?

//list
public List<ChatterMessage> filterChatterMessage(List<ChatterMessage> cm)
{
    system.debug('filterChatterMessage:'+cm);
    return filterBody(fm);
}

public List<SObject> filterBody(List<SObject> sobjs)
{
    for (SOBject feedObject: sobjs)
    {
        if(feedObject instanceOf ChatterMessage)
        { 
            body = ((ChatterMessage)feedObject).Body;
            ConversationId = ((ChatterMessage)feedObject).ConversationId;
            SenderId = ((ChatterMessage)feedObject).SenderId;                
            SentDate = ((ChatterMessage)feedObject).SentDate;
        }
        else
        {
            ........
        }
    }
}

So where do I have to make a trigger for the ChatterMessage?

5

Chatter messenger doesn't have an API as yet - I believe it is on the roadmap.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.