-
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
Explore How DemandBlue’s Revenue Cloud Offering Could Enhance Your Business Model
Does your business lack absolute transparency across your sales cycle, finance operations, and revenue channels? Maybe it’s time to improve your game. If you are…
A Complete Guide to Salesforce Sales Cloud: From Strategy to Success
In today’s competitive environment, sales teams need more than just contacts and spreadsheets — they require intelligence, automation, and clear visibility across every deal. That’s…
How to overcome Red Flags that indicate harm to your digital strategy?
Choosing CRM is life-changing, and this is not a joke. The way a software adjusts to your customer management approach; its ability to scale and…
Popular Salesforce Videos
Salesforce Spring 22 Treasure Hunt for Flow | Migrate your Workflow Rules to Flows
Salesforce Spring 22 Treasure Hunt for Flow 0:00 Register for pre-release org 0:27 Flow Trigger Explorer 2:07 Auto-Layout and Freeform option as Picklist 3:00 Set…
Introduction to Report and Dashboard in Salesforce | Salesforce Training Videos
A report is a list of records that meet the criteria you define. It's displayed in Salesforce in rows and columns, and can be filtered,…
Introduction to Cloud Pages in Salesforce Marketing Cloud
Cameron Robert from Datarati introduces the Cloud Pages function in Salesforce Marketing Cloud and talks through the different Cloud Page types and how they can be…