-
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
How Does Salesforce Data Cloud Improve Operational Efficiency?
Table of Contents What is Salesforce Cloud Data? Salesforce Data Cloud enhances operational efficiency in several ways Data Unification Real-time Insights Personalization Automation Segmentation Third-party…
Customize and Filter Related Lists in the Salesforce Lightning App Builder
Potentially one of the most significant UI changes coming to Salesforce in the latest Summer ‘22 release is the change to how we work with…
Create Dynamic Actions in Salesforce - Step-by-step Guide
Dynamic Actions are the actions that display the actions based on the criteria that you have provided. It means the actions will appear or disappear…
Popular Salesforce Videos
Dreamforce to You London 2019: Round-up Video!
Great to contribute to the Salesforce #Dreamforcetoyou event as a Cloud Social Influencer and here is my roundup.
Salesforce Heroku Integration | Heroku Connect
Heroku is a cloud platform that lets deploy, run and manage applications and websites. It is part of Salesforce Platform. This video will explain about…
Salesforce Career Personality Quiz
Which Salesforce career path is right for you? Take this 23 question quiz to learn which Salesforce career is the best match for your personality…