-
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
Overcome CRM Challenges With the Help of a Salesforce Consultant
Salesforce possesses powerful features and capabilities becoming the world’s leading CRM platform. It provides various companies an edge to move far beyond their customer’s expectations…
How to Connect Salesforce and Postman Using SOAP API
SOAP APIs are developed as the intermediate language. In simple words, we can say that if you built an app in different languages and you…
Triggers in Salesforce - Get Started
What is a Trigger? A Trigger is an Apex script, which we can use in many situations. The use of trigger is, it will help…
Popular Salesforce Videos
Salesforce Service Cloud Voice Demo
Salesforce Service Cloud Voice uses intelligent telephony to increase agent productivity and better serve customers, from anywhere. Today, customers can connect with companies across almost…
Salesforce Training Videos For Beginners - 1 | Salesforce Administrator Training
This Salesforce Training Video will help you understand which is the easy and best tool for CRM, Branding, tabs and homepage optimization. This is an…
Creating a To-do List with Custom Events | Salesforce Developer Quick Takes
Creating a ToDo list will show us how we can take data from one component and pass it to another. In our ToDo list component,…