Questions tagged [chatter-api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
121 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 ...
0
votes
1answer
18 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 ...
0
votes
1answer
34 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
0answers
20 views

Inserting a ContentVersion using Angularjs $http + Chatter Rest API

I have been trying to insert files using Salesforce Chatter REST API, but its been documented only for curl. I am unable to find how to do the same in Angularjs using $http with visualforce. I am ...
6
votes
0answers
4k 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 ...
4
votes
1answer
293 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 ...
1
vote
1answer
3k 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
0answers
496 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 ...
0
votes
1answer
794 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
0answers
46 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
0answers
162 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 ...
2
votes
2answers
80 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.
11
votes
1answer
100 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 ...
2
votes
1answer
704 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 ...
1
vote
1answer
5k 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 ...
0
votes
0answers
115 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 ...
1
vote
1answer
165 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 ...