Questions tagged [chatter-api]
The chatter-api tag has no usage guidance.
17
questions
12
votes
1
answer
16k
views
Best approach for uploading to Salesforce files via a Salesforce API
I need to load files into Salesforce via an API as part of some integration work. I want to be loading files as Salesforce Files (not attachments) so we can version files if need be and I also need to ...
11
votes
2
answers
191
views
CORS issues with Chatter API Photo Posting
I have a Chatter Communities API request that creates a new user profile picture. This API callout works when I use an app like Ruby or even a cURL command. However, using an AJAX callout, I get a ...
4
votes
1
answer
822
views
Auto Completion of Usernames or groups using mentions method
I have a lightning page which displays the chatter feed of a particular group. Each feed has a text input box with a "Share" button. While entering text and using the "@" mention tag, I am hoping to ...
2
votes
2
answers
147
views
How can i get topicassignments associated with collaborationgroupfeed?
Iam trying to get TopicAssignment records that are associated to CollaborationGroupFeed. I tried following but didn't work. Let me know if you have any other suggestions.
2
votes
1
answer
2k
views
How to download a attachment in browser using JSForce?
I am trying to download a Attachment using JSForce library. I am able to get body of attachment and download that file but somehow content of downloaded file is not correct and I am getting a corrupt ...
2
votes
1
answer
853
views
How to get the content of a chatter file using API
I am integrating my SF org with an external mobile app.
I have a file uploaded to the chatter feed of each contact (the picture of the contact).
This app needs to get the picture to display in the ...
2
votes
0
answers
885
views
Chatter in Apex using Lightning components
I'm fairly new to Lightning Design System.So need some guidance here.
I'm trying to build Chatter in Apex using Lightning components. Using rest Api, I am getting the Chatter Feed of a group in my org ...
1
vote
1
answer
5k
views
Getting the JSON values in a component
I have a chatter API response in below JSON format
"currentPageToken": null,
"currentPageUrl": "/services/data/v39.0/chatter/feeds/record/0F98E0000004UhASAU/feed-elements",
"elements": [
{
...
1
vote
1
answer
2k
views
How can I use ConnectApi.LinkCapabilityInput to create Chatter posts from Apex?
I need to use Apex to create a chatter post on an Account object, which will include some text which is a clickable hyperlink. After hours of confusing searches, I thought I had found the solution ...
1
vote
1
answer
202
views
Can successfully send GET request to Chatter API but not POST, receiving INVALID_SESSION_ID
I never had this issue using the REST data API - I'm using the Chatter API and trying to post to a group. I am setting the correct instance url in the request, and passing the returned access token as ...
1
vote
1
answer
7k
views
Script-thrown exception: (System Code) when using ConnectApi.ChatterFeeds.postFeedElementBatch
In a lead trigger before update, im trying to post a comment in a chatter group related based upon a field value on my lead. But i'm getting the following error : LeadAfterUpdate: execution of ...
1
vote
1
answer
2k
views
ConnectApi.ConnectApiException: Mentioned group does not exist
I have a chatter feed publisher component at 2 places(topics page and article page) in a community and whenever user posts something, I'm writing a trigger code on FeedItem object to auto at mention a ...
1
vote
1
answer
354
views
Sending post request from one org to another
I have two SFDC orgs - org1 and org2. I want to send a POST request from org1 to org2. I've already created a connected app on org2 and have named credentials + auth provider set up on org1.
More ...
1
vote
0
answers
56
views
Chatter to Apex: Getting Attachment
I am using rest api (ConnectApi namespace output classes) to get the chatter feed details of a particular group in my org and using Javascript remoting to display the elements in a custom vf page. So ...
0
votes
1
answer
538
views
Chatter API vs ConnectAPI
I'm trying to understand the difference between Chatter REST Api and ConnectAPI in terms of capabilities.
If my task is to post to a Chatter feed from an external application, I believe there would ...
0
votes
0
answers
696
views
Access ConnectApi's setPhoto method on UserProfiles when the current user is a guest user
Currently we are using a custom self registration page on community to allow users to register for the community. As a part of this registration process, we want to assign a default profile picture to ...
0
votes
0
answers
139
views
Getting collection of chatter answers and their replies - getting null question objects
I'm trying to get a collection of chatter questions and their related replies, but for some reason, I'm getting the correct replies, but null values for the question object. Here's my code:
public ...