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
- :
- Could not achieve Chatter Preview
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Could not achieve Chatter Preview
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
09-18-2012 09:49 AM
I have a approval in process to post the attachments to Chatter,
If a record is Approved which is created through UI with attachments, I am able to view the preview of Attachments.
I am not able to see the preview of attachments after approval of records created through inbound email.
Is any thing i need to add in the code or?
public class EmailParsingActivity {
public void attachToRecord(Messaging.InboundEm
String contents='';
List<Attachment> listAttach = new List<Att
if(bAttachments != null) {
for(Messaging.InboundEmail.BinaryAttac
system.debug('attach file name ' +
Attachment attach = new Attachment
//attach.Body = Blob.valueOf(bAtta
String b64Data = EncodingUtil.base
//Blob bab = bAttach.body;
attach.Body = Blob.valueOf(b64Data
attach.Name = bAttach.filename;
//attach.parentId = submitRecord.I
attach.parentId = abcdRecId;
listAttach.add(attach);
}
system.debug('attach list size ' + lis
insert listAttach;
}
}
}
I would appreciate if someone assist me with the solution. Thanks in Advance-----
Sai
Solved! Go to Solution.
Re: Could not achieve Chatter Preview
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-22-2012 01:02 AM
Me too Facing the Same Issue , Have you got any Solution for this Issue, please let us know
Thanks in advance
Re: Could not achieve Chatter Preview
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-22-2012 06:21 AM - edited 11-26-2012 02:41 AM
public class EmailParsingActivity {
public void attachToRecord(Messaging.InboundEmail.BinaryAttach
List<Attachment> listAttach = new List<Attachment>();
if(bAttachments != null) {
for(Messaging.InboundEmail.BinaryAttachment bAttach : bAttachments)
{
//system.debug('attach file name ' + bAttach.filename);
Attachment attach = new Attachment();
attach.Body = bAttach.body;
attach.Name = bAttach.filename; // name of the attachement should be same a attached to email
attach.parentId = urRecID;
listAttach.add(attach);
}
system.debug('attach list size ' + listAttach.size());
insert listAttach;
}
}
}
Sai

