You need to sign in to do that
Don't have an account?
Sunil Pal
ConnectAPI.
Hello Eveyone,
I have to get the all the messages with the same converarstionhappening in chatter messgaes by using the ConnectAPI. Whenver we click on the messges under the recent message came it expands and display all the messges within that chain.
Please provide me the method that is used for getting the messges realeted to that chain.
When we click on the box written as 7:22 AM in screen 1, it expand and become screen 2. How to get the all the messages by using connectApi
Thanks,
Sunil
I have to get the all the messages with the same converarstionhappening in chatter messgaes by using the ConnectAPI. Whenver we click on the messges under the recent message came it expands and display all the messges within that chain.
Please provide me the method that is used for getting the messges realeted to that chain.
When we click on the box written as 7:22 AM in screen 1, it expand and become screen 2. How to get the all the messages by using connectApi
Thanks,
Sunil
To get the data for a specific conversation (screen 2), the method to use is ConnectApi.ChatterMessages.getConversation() (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_ConnectAPI_ChatterMessages_static_methods.htm#apex_ConnectAPI_ChatterMessages_getConversation).
To get the list of conversations (screen 1), the method to use is ConnectApi.ChatterMessages.getConversations() (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_ConnectAPI_ChatterMessages_static_methods.htm#apex_ConnectAPI_ChatterMessages_getConversations).