-
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, 4 months ago by
Prachi.
-
This discussion was modified 6 years, 3 months ago by
Forcetalks.
-
This discussion was modified 6 years, 3 months ago by
Forcetalks.
-
This discussion was modified 6 years, 4 months ago by
Log In to reply.
Popular Salesforce Blogs
Enhancing Business Efficiency: Professional Salesforce Integration Services
Salesforce integration services aim to enable seamless connections between Salesforce solutions and your other business-critical systems. In today's fast-paced digital landscape, businesses strive to optimize their operations, maximize productivity,…
Ways to Optimize Your Salesforce Org in Business
Observing end-client appropriation and wiping out specialized obligations are the two foundations for developing a hearty CRM-compelling Salesforce organization, yet in the event that you…
Salesforce Financial Services Cloud | Empower your borrowers with Mortgage Innovation
Loans and Mortgages are key elements of today’s economy and there is a likelihood that every adult at some time or other has been part…
Popular Salesforce Videos
How Users Set Up Einstein Activity Capture | Salesforce Tutorial
Say goodbye to busy work. Say hello to smarter selling. When you connect your email and calendar to Salesforce with Einstein Activity Capture, their email…
Salesforce Einstein Analytics for Developers
Einstein Analytics is the Salesforce-native analytics platform, providing users with insights into their business. This session dives into topics including APIs, metadata, packaging, and other…
Connect Google Ads Lead Form Extension to Salesforce
Do you need to collect leads from your Google Ads Lead Form extension and receive them directly in your Salesforce org? We demo how to…