-
How to prepopulate EventWhoids in Salesforce lightning component?
I am trying to create a lightning component which uses e.force:recordCreate and prepopulates a list of ContactIds in the EventWhoIds field. However, the contact do not get prepopulated in the form.
console.log(component.get("v.contactIds"));
var contactRecords = component.get("v.contactIds");
console.log("contactRecords: " + contactRecords);var createEvent = $A.get("e.force:createRecord");
createEvent.setParams({
"entityApiName": "Event",
"defaultFieldValues": {
'WhatId' : component.get("v.recordId"),
'EventWhoIds' : contactRecords
}
});
createEvent.fire();-
This discussion was modified 6 years, 11 months ago by
Prachi.
-
This discussion was modified 6 years, 11 months ago by
Forcetalks.
-
This discussion was modified 6 years, 11 months ago by
Forcetalks.
-
This discussion was modified 6 years, 11 months ago by
Log In to reply.
Popular Salesforce Blogs
Seamless Salesforce Data Migration Solution for Nested Parent-Child Relationships with iSyncSF
Introduction Data migration is a critical process for businesses transitioning to Salesforce or consolidating their existing data within the platform. Salesforce offers a robust platform…
What Makes Teqfocus Your Perfect Salesforce Partner
When you ask yourself the question of which Salesforce company is the best in India and which company should you consider as the perfect Salesforce…
Essential Steps for Successful Salesforce Implementation in Your Business
Do you want to drive strong customer relationships and transform your business? Or do you need a tool that aligns customer details and their needs…
Popular Salesforce Videos
Salesforce Training Videos For Beginners - 1 | Salesforce Administrator Training
This Salesforce Training Video will help you understand which is the easy and best tool for CRM, Branding, tabs and homepage optimization. This is an…
Salesforce Tutorial - How to Create Custom App in Salesforce
Apps, Tabs, Objects are basic Building Blocks of Salesforce. In this video, I am explaining how exactly you will able to develop a custom app…
Install Adobe Sign & Send Agreements For E-sign in Salesforce
Learn the steps involved in installing Adobe Sign and sending agreements for e-sign in Salesforce. This tutorial will cover the following points - 1. Install…