-
Error while inserting the feedItem in Salesforce
I want to insert the feedItem.
List<FeedItem> fd= [select body from feedItem where parentId='5007F0000018WrE'];
List<FeedItem> it = new List<FeedItem>();
for(feedItem sa:fd){
FeedItem f1=new feedItem(body=sa.body, parentid='5007F000002ATW0');
it.add(f1);}
insert it;it is showing the following exception-
System.DmlException: Insert failed. First exception on row 1; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Body]: [Body]
Log In to reply.
Popular Salesforce Blogs
4 favorite Salesforce Spring ’18 Release features
There has been a lot of buzz in the cyberspace about the much awaited Salesforce Spring '18 Release. Even though the Salesforce Spring '18 Release…
Why You Should Take the Salesforce Certificate Associate Exam?
Salesforce is one of the most widely used Customer Relationship Management (CRM) platforms in the world. As businesses continue to adopt Salesforce for their customer…
Coveo For Salesforce in Community
Introduction Coveo provide AI-powered search for every Salesforce customer inside Service Cloud, Community Cloud, and App Cloud. Following key points for Coveo Search: It gives your…
Popular Salesforce Videos
Salesforce Financial Services Cloud demo
Today's seamlessly connected customer is raising expectations for organizations to "show them they know them" by providing efficient, informed and integrated experiences no matter which…
Custom Login Page Using Mulesoft | Salesforce Tutorial
In this video, you will learn how to create a custom login page using Mulesoft. Watch and learn. If you have any doubts do let…
How to Create Your First Salesforce Lightning Component?
OpFocus walks through the steps you need to know to create your first Salesforce Lightning Component.