-
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
Exploring the Latest Advancement with Salesforce Einstein Copilot's General Availability
Salesforce announced today during its World Tour NYC that Salesforce Einstein Copilot, its conversational AI assistant for CRM, is now generally available. Einstein Copilot was…
The 202 of UI Testing Automation Model from Salesforce
Testing apps is critical to ensure that they are of top-notch quality. And to test applications, one type of testing you can trust is end-to-end…
A Complete Guide to Dreamforce 2024
Dreamforce, Salesforce’s flagship conference, is the highlight of the year for many professionals in the Salesforce ecosystem. With countless workshops, networking opportunities, and parties –…
Popular Salesforce Videos
Things You Should Know Before Starting Salesforce Consultancy?
Following are the things you should know before starting the Salesforce Consultancy: 1. Do the Marketing Research 2. Focus on USP The rest of the…
Nonprofit Summit 2022 - Go Further with Salesforce Reports and Dashboards Hands-on Training
Salesforce reports and dashboards are the analytical sides of CRM. They are used to convert business requirements into Visual representations like Graphs, Pie Charts, Tables,…
4 Key Highlights From the Dreamforce Keynote Event
Let's straightaway take a jump on the announcements – from Hyperforce, Einstein Automate, Service Cloud Workforce, and huge acquisitions – presenting you a summary of…