-
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 4 years, 5 months ago by Prachi.
- This discussion was modified 4 years, 5 months ago by Forcetalks.
- This discussion was modified 4 years, 5 months ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
Getting Started with Salesforce Lightning Scheduler
If scheduling appointments is a consistent problem in your business, or you need to upscale your current system, try the Salesforce Lightning Scheduler. This add-on…
What Are The Top Features While Using Salesforce For Nonprofits?
Salesforce is one of the best solutions for NonProfits highly demanded in the market. When so many Companies rely on the CRM system for sales,…
Email Services in Salesforce with Simple Example
What is an Email Administration in Salesforce? Email administrations are computerized forms that utilization Apex classes to process the substance, headers, and connections of inbound…
Popular Salesforce Videos
Gear up Marketing Automation with Salesforce Pardot
Salesforce trailblazer Admin group, Nasik with a session on Gear up Marketing Automation with Salesforce Pardot. Pardot is a marketing automation solution that helps companies…
Custom Aura Feed Component | forceChatter:feed | Chatter in #Salesforce | Salesforce Tutorials
In this vlog I will create a custom aura feed component with two picklists to select Group and then based on the Group selection, select…
SQL Row_Number - Salesforce Marketing Cloud Functions in 5 minutes
Cameron Robert shows how to use the Row Number (Over Partition By) SQL function in Salesforce Marketing Cloud. The SQL Row Number function can be…