-
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
SALES PATH: Your Company’s Sales Processes in Lightning Experience
Sales Path is a great feature that Salesforce is made available for Lightning Experience only. This tool is designed to guide your sales reps through…
[Presentation] Salesforce Security – An Encryption Guide For The Paranoid
If you are using Salesforce, you would be having a lot of data stored in Salesforce objects. Some of it would be sensitive data, and…
Popular Salesforce Videos
Process Builder or Apex Triggers - Choosing Between Salesforce Automation Tools
The Salesforce Platform offers several means to operate in the background: Process Builder, Triggers, Flow, Workflows, and more. With so many robust options, it can…
Get Started with Process Builder
Get started with process builder -- and replace that ridiculously and ever-growing list of workflow rules with easier to understand, more extensible processes. This video…
Tips to Crack the Salesforce Administrator Certification Exam in One Go
Do you want to become Salesforce administrator certified? So in this video Shrey has shared the important topics to crack the Salesforce Administrator Exam. Following…