-
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

Top 5 Best CRM Software Platforms in 2024
Searching for a better approach to developing and managing your start-up business? Customer relationship management (CRM) software is what you need. Yes, a CRM can…

What Does a Salesforce Developer Course Include?
Since its inception, Salesforce has been the most renowned CRM platform provider in the world. This is due to the robust nature of an ecosystem…

What is Salesforce? Learn About Salesforce Products Here
Routine Automation collected all you need to know and combined it into an introduction to Salesforce. What does Salesforce do exactly? How to use Salesforce? In…
Popular Salesforce Videos
Top 50 Salesforce Lightning Interview Questions And Answers | Salesforce Lightning Interview
This video by MindMajix includes all the frequently asked Interview questions that give you an idea to crack your Salesforce Lightning interview smartly. These Interview…
Salesforce Tower San Francisco Virtual Community Tour
Wherever you are around the world, join us for a virtual tour of Salesforce Tower San Francisco, our global headquarters. Together, we’ll take a walk…
My Wild Career Journey: From Lawyer to Salesforce Consultant
People often ask Brainiate what his career journey looked like, and in this video he share with you the key milestones that brought him to…