function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
HeliusHelius 

Redirecting to specific chatter feed-item

Greetings, I'm wondering if someone can explain how this works. I'm calling feed-items from a specific group and I'd like to redirect the user of the app I'm building to the specific group page or feed-item page on clicking the text (if there is one for individual feed items).

 

I get things back like   "url" : "/services/data/v23.0/chatter/feed-items/0D5C0000017QoVpKAK", but I'm not sure how to format that so it loads the chatter site for the user. Using the instance_url and then that url section doesn't work, but I'm hoping the feed-item ID can be used or something.. Just ignorant of the format to use.

 

Hope that makes sense. Thanks!

Best Answer chosen by Admin (Salesforce Developers) 
alouie_sfdcalouie_sfdc

You can just use the instance_url followed by the group or feed item ID. For example:

 

https://instance_url/0D5C0000017QoVpKAK

 

"id" is a property of the payload and you don't have to parse it from the "url" property. 

All Answers

alouie_sfdcalouie_sfdc

You can just use the instance_url followed by the group or feed item ID. For example:

 

https://instance_url/0D5C0000017QoVpKAK

 

"id" is a property of the payload and you don't have to parse it from the "url" property. 

This was selected as the best answer
HeliusHelius
Thank you! I probably would have tried that eventually, but you just saved me some time.