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
JSBrianJSBrian 

Chatter and Dataloader

Curious to know if we can use the dataloader to import a chatter attachment?

 

1. We 1st import 1000 contacts

2. We then use the salesforce id and upload the associated document to a chatter message.

 

We do it with regular attachments but need to use Chatter for this use case.

 

Thanks

gm_sfdc_powerdegm_sfdc_powerde

You sure can. You will have to  upload your content to FeedPost object. Make sure you populate the following fields -

 

ParentId  (specify parent contact id)

Body   (text for chatter post)

ContentData  (Path to attachment on the local file system)

ContentFileName  (file name that shows up in Chatter post)

ContentDescription (file description that shows up in Chatter post)

 

MyGodItsColdMyGodItsCold

Is there a specific version of Data Loader required? I'm using 18.0 and don't see FeedPost object - even when i check show all sf objects. I do see "EventPost"... User error?

gm_sfdc_powerdegm_sfdc_powerde

Use 20.0 or higher. 

glynnoglynno

I want to let you know about an alternative to the dataloader.  Archive for Chatter is a backup and archive solution for Salesforce Chatter – http://www.edynamicsllc.com It works with Groups and Chatter attachments. Hope this is helpful

http://www.edynamicsllc.com

TexasRobTexasRob

gm_sfdc_powerde wrote:

You sure can. You will have to  upload your content to FeedPost object. Make sure you populate the following fields -

 

ParentId  (specify parent contact id)

Body   (text for chatter post)

ContentData  (Path to attachment on the local file system)

ContentFileName  (file name that shows up in Chatter post)

ContentDescription (file description that shows up in Chatter post)

 


Thanks, very helpfull. Worked like a champ!

 

Jason LushJason Lush
Does anyone know if it's possible to import chatter topics into salesforce?
April Santiago 7April Santiago 7
Upon further investigation, we found out that the functionality you were looking for is currently not available in Salesforce. Please see this link for reference: 

https://developer.salesforce.com/docs/atlas.en-us.202.0.api.meta/api/sforce_api_objects_chatteractivity.htm 

If you go to the link above, you can see that there are only three supported calls and one of them is retrieve(), this means that this object is available for exporting data. The call used for inserting data is create(), which is not available in the ChatterActivity object.