-
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
More About Salesforce Custom Objects Behavior
Utilize the accompanying points to work out how the API communicates with custom items and fields: Naming Conventions for Custom Objects Relationships Among Custom Objects…
Use Salesforce Implementation Consultants to Get your Business CRM Up and Running by 2023.
The top companies of today are increasing their the profits of their business by adopting an all-encompassing strategy for Salesforce CRM. Salesforce, the best CRM system,…
Sales Cloud Vs Service Cloud: What are the Key Difference?
No Salesforce Service Cloud Solution would be complete without its sales cloud counterpart. They are all part of the Salesforce platform and are essential modules…
Popular Salesforce Videos
Prepare for Your Salesforce Pardot Implementation
If you're preparing for your Pardot implementation, you've come to the right place! Pardot implementation is a complex, multi-step process. In this video, we will…
Salesforce Account-Based Marketing Demo
Salesforce Account-Based Marketing is a partnership aligning Marketing, Sales, and Service around a single view of your top accounts. A partnership which reesults in long…
Introduction To Salesforce | Salesforce Training Videos For Beginners
Are you confused to choose the best edition tool? For CRM and Branding then here is the information for you! Salesforce is one of the…