-
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 5 years ago by Prachi.
- This discussion was modified 5 years ago by Forcetalks.
- This discussion was modified 5 years ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
No Code Salesforce and WhatsApp Integration
Businesses are increasingly using messaging as their primary channel for customer communication. Each week, more than a billion users connect with a business account using…
Salesforce Summer ‘19 – The Top 10 Features
Three times per year, Salesforce provides us with a host of new features across all the cloud products. Coming up soon is the Summer 19…
Features of Salesforce Commerce Cloud: Enhancing the Shopping Experience
Commerce Cloud is a key part of the Salesforce Customer Success Platform and offers ecommerce solutions for B2C (business-to-consumer) and B2B (business-to-business) customers. That means…
Popular Salesforce Videos
Algoworks Becomes SFDO Partner | Salesforce Partner
The Salesforce Partner Program gives the opportunity to its partners to build and grow successful businesses while delivering customer success. With this program, Independent Software…
TOP 20 Salesforce Integration Interview Questions and Answers 2019 | Salesforce Integration
In this video, Wisdom Jobs and Tutorials explains the 20 most popular questions asked during Salesforce Integration interviews. These questions cover topics like what web…
2020 Salesforce Administrator Certification Start Here
Get ready for the administrator certification exam with interactive study tools. Collaborate and study with fellow Trailblazers in the Trailblazer Community. Learn with Salesforce experts…