Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- 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
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Chatter Development
- :
- Re: How to download attachments of FeedComments
turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
How to download attachment s of FeedCommen ts
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-03-2012 12:39 AM
Hi,
I want to download the attachments from the FeedComments. I am able to get the ContentData from the ContentVersion Object with reference to RelatedRecordId. Issue is to create the file I also need to know the name of the attachment and type of the attachment like txt, jpg etc. Kindly let me know how can i get the ContentName.
query I'm using: SELECT VersionData From ContentVersion WHERE Id = RelatedRecordId.
0
Re: How to download attachment s of FeedCommen ts
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-04-2012 08:29 PM
FileType is defined by either ContentUrl for links or PathOnClient for documents, but not both (see the ContentVersion Object).
File name is the Title field of the ContentDocument Object.
Get the ContentDocumentId field on the ContentVersion object and then query the ContentDocument object to get the Title by the ContentDocumentId.
http://www.salesforce.com/us/developer/docs/api/Co ntent/sforce_api_objects_contentdocument.htm
File name is the Title field of the ContentDocument Object.
Get the ContentDocumentId field on the ContentVersion object and then query the ContentDocument object to get the Title by the ContentDocumentId.
http://www.salesforce.com/us/developer/docs/api/Co

