-
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
Stripe Integration with Salesforce
So firstly what is a stripe? Stripe is the most commonly used payment gateway. Stripe is widely used by e-commerce, subscription-based services, and by many…
What are the Basics of Async Apex Methods in 2024?
Hello Ninjas, Let's talk about Async Apex Method. Before that let's see some basics of async process. Many of the time while coding we want…
Salesforce: The Customer Success Platform To Grow Your Business Automation
If you’ve ever thought how great it would be to have a personal assistant, you should consider exploring Salesforce and its automation features. Imagine having…
Popular Salesforce Videos
Salesforce Field Service: Complex Work and Routing | AblyPro Webinar
Salesforce Field Service is a powerful tool designed to help businesses manage complex field service workflows and optimize their routing processes. With Salesforce Field Service,…
Introduction to Salesforce Shield Platform Encryption | Salesforce Tutorial
Introduction to Salesforce Shield Platform Encryption 0:00 Introduction 1:00 Shield Platform Encryption 2:35 Need for Shield Platform Encryption 3:18 Classic Encryption Vs Shield Platform Encryption…
Salesforce Platform Developer 1 Certification Training | Salesforce Training Video
This Salesforce Training Video will give an overview of Salesforce Certification Training by explaining what is Salesforce, Why we need Salesforce, Salesforce Career opportunities and…