- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
10-30-2012 11:06 PM
Is it possible to upload / download a file from the FeedComment using SOQL.
FeedComment object is not having any fields to hold the attachments.
Kindly let me know the workaround for the same.
10-31-2012 01:47 AM
FeedComment fc = new FeedComment();
fc.FeedItemId = '0D5O0000001cfMb';
fc.CommentBody = 'test';
fc.RelatedRecordId = '068O00000006aIO';
you can only upload to comment through a existing file id(ContentVersion id), also you can download the file by this id.
11-01-2012 06:16 PM
11-02-2012 04:33 AM
Thanks, I am able to query at ContentVersion and get the VersionData. I need to find out the name of the file attached also to download to my local system. In the contentVersion object there is no any field to get the name of the file attached. Do I need to refere any other object for the ContentName.
11-04-2012 08:24 PM