-
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
Triggers in Salesforce - Learn All You Need to Know
What is Apex Trigger? Apex Triggers are used to refer to triggers in Salesforce. These are different and are accessible for particular tasks such as…
Transforming Customer Engagement with Salesforce Experience Cloud: Best Practices
With high customer expectations in today's digital world, businesses must be at the forefront of customer engagement strategies. Salesforce Experience Cloud is the key to…
Why Every Small & Medium Business Need Salesforce Implementation
Salesforce CRM is getting popular these days among every enterprise, due to its capabilities. The cloud-based CRM is being an extensively useful developing technology, changing…
Popular Salesforce Videos
Salesforce CPQ Subscription Pricing
Configure Price Quote (CPQ) is a powerful sales tool that enables companies to produce accurate and highly configured sales quotes for customers — especially in…
Service Resources and Territories in Salesforce | Salesforce Webinar
Ensure seamless field service operations by setting up Service Resources and Territories in Salesforce Field Service the right way. Organize and manage field service operations…
Salesforce Automation Tools
What all automation tools available in Salesforce? Learn more about automation tools - a) Process Builder b) Lighting Flow c) Approval process d) Workflow rules…