-
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
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 –…
All You Need to Know About Permission Sets
Salesforce Profiles and Permission sets control what users can access, see, and do in your Salesforce org. This permission management is a critical activity in…
4 Ways a Customer Portal Makes Salesforce & WordPress a Winning Fusion
Customer Relationship Management (CRM) is synonymous with the brand Salesforce. It’s the first name that pops up whenever there is any chatter about CRM. They…
Popular Salesforce Videos
Salesforce App Builder Certification Questions Explained
CRM tools serve as the base for managing small and large-scale businesses, and Salesforce is among the best CRM tools in the industry. Therefore, Salesforce…
Integrate Salesforce and Active Directory Step by Step
The prospect of implementing Single Sign-on in your Salesforce org can seem daunting if you are unfamiliar with the process. In this live step-by-step demo…
How to Create a Connected App in Salesforce? | What is a Connected App?
Watch this video to learn how to create a Salesforce connected app to enables an external application to integrate with Salesforce using APIs. If you…