-
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
Salesforce CRM Analytics Comprehensive Overview: Capabilities, Key AI Features and Benefits
As the demand for accurate foresight intensifies, a new force emerges: predictive analytics. This groundbreaking approach gives organizations the power to forecast future outcomes with…
What are the Common Challenges faced by Salesforce Consulting Firms in the USA?
In the realm of digital transformation and customer relationship management (CRM), Salesforce stands tall as a market leader. As businesses across the United States embark…
Einstein Application and Licenses in Salesforce Sales Cloud in 2024
Einstein Lead Scoring Use AI to score your leads by how well they fit your company’s successful conversion patterns. Let your sales team prioritize their…
Popular Salesforce Videos
Salesforce Trailhead 2020 - Developer Beginner - Search Solution Basics
This video explains: Explain when to create a customized search solution. Describe the difference between SOSL and SOQL. Identify which API protocols are available for…
Dreamforce 2021 Main Keynote - Welcome to the Trusted Enterprise | Salesforce
Today, every business has to transform to become a Trusted Enterprise. Join Marc Benioff & special guests to learn how Customer 360 helps businesses of…
Batch Apex In Salesforce | Asynchronous Apex
Asynchronous Apex 1. Batch Apex 2. How to run Batch Apex class 3. Monitor Batch Apex class 4. Examples 5. Points To Remember Upcoming Video…