• dsingh
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 4
    Replies

Hello,

I am trying to get a complete conversation between 2 users which was sent through private messages. The problem is, that for some reason, I am only able to get the last message which was send and not the whole conversation. Example:

 

The messages:

 

1. first message

2. reply

3. blah

4. kuku

 

when I send the rest querry I am getting:

{"id"=>"03M70000000CfweEAC", "url"=>"/services/data/v23.0/chatter/users/me/conversations/03M70000000CfweEAC", "members"=>[{"name"=>"Eyal Eizenberg", "title"=>nil, "firstName"=>"Eyal", "lastName"=>"Eizenberg", "companyName"=>nil, "mySubscription"=>nil, "photo"=>{"smallPhotoUrl"=>"https://c.na5.content.force.com/profilephoto/729700000004fkK/T", "largePhotoUrl"=>"https://c.na5.content.force.com/profilephoto/729700000004fkK/F"}, "isChatterGuest"=>false, "id"=>"00570000001YGwlAAG", "type"=>"User", "url"=>"/services/data/v23.0/chatter/users/00570000001YGwlAAG"}, {"name"=>"IT SAManageIT", "title"=>nil, "firstName"=>"IT", "lastName"=>"SAManageIT", "companyName"=>nil, "mySubscription"=>nil, "photo"=>{"smallPhotoUrl"=>"https://c.na5.content.force.com/profilephoto/005/T", "largePhotoUrl"=>"https://c.na5.content.force.com/profilephoto/005/F"}, "isChatterGuest"=>false, "id"=>"00570000001YihcAAC", "type"=>"User", "url"=>"/services/data/v23.0/chatter/users/00570000001YihcAAC"}], "read"=>true, "latestMessage"=>{"id"=>"03J70000000ChbTEAS", "sender"=>{"name"=>"IT SAManageIT", "title"=>nil, "firstName"=>"IT", "lastName"=>"SAManageIT", "companyName"=>nil, "mySubscription"=>nil, "photo"=>{"smallPhotoUrl"=>"https://c.na5.content.force.com/profilephoto/005/T", "largePhotoUrl"=>"https://c.na5.content.force.com/profilephoto/005/F"}, "isChatterGuest"=>false, "id"=>"00570000001YihcAAC", "type"=>"User", "url"=>"/services/data/v23.0/chatter/users/00570000001YihcAAC"}, "url"=>"/services/data/v23.0/chatter/users/me/messages/03J70000000ChbTEAS", "body"=>{"text"=>"kuku", "messageSegments"=>[]}, "recipients"=>[], "sentDate"=>"2012-01-26T15:32:28.000Z", "conversationId"=>"03M70000000CfweEAC", "conversationUrl"=>"/services/data/v23.0/chatter/users/me/conversations/03M70000000CfweEAC"}}

 

 

As you can see I am only getting "kuku" but not the rest of the messages. How can I get all of them?

 

Thanks!

 

 

  • January 30, 2012
  • Like
  • 0

Hi,

 


While creating Home page Components i choose component of Type HTML Area to display it in wide region.

 

From this i want to call Visual Force page for that i wrote like below

 

<HTML>

<a href=URL.getSalesforceBaseUrl().toExternalForm()+'/apex/UsePolicyTest'>Click Here</a>

</HTML>


But it is showing as is in the Home Page and it is not calling VisualForce Page.


Can anyone please share ideas on how to call Visual Force Page from here..