-
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
LWC vs React: An In-Depth Comparison of Component-Based UI Frameworks
In the ever-evolving realm of web development, where innovation constantly pushes the boundaries of what can be achieved, two front-end frameworks have emerged as leaders…
Visualforce Basics | Salesforce Learning Guide
Visualforce is a powerful tool and a stimulating framework allowing developers to explain the interface component and to create sophisticated custom interfaces which will be…
Things to Consider Before Deactivating a Salesforce Trigger
Introduction Triggers are an Apex script that runs before or after data manipulation language(DML), as an example, it invokes when we insert, deletes, update, merge,…
Popular Salesforce Videos
Makes Migration Between Salesforce Org Easy Using BOFC Application
BOFC has empowered global organizations by simplifying one of the biggest challenges in Salesforce migration, i.e., metadata management. In the above one got to know…
Salesforce Development and Career Opportunities
Salesforce is the world’s #1 customer relationship management (CRM) platform. Salesforce allows sales reps to see everything about a customer in one place and provide…
What is Salesforce Development? | Salesforce Developer Course
In this video, Shrey has given a detailed overview of the Salesforce Development Course. You will learn the following topics from this course: Apex basics…