-
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, 10 months ago by
Prachi.
-
This discussion was modified 6 years, 10 months ago by
Forcetalks.
-
This discussion was modified 6 years, 10 months ago by
Forcetalks.
-
This discussion was modified 6 years, 10 months ago by
Log In to reply.
Popular Salesforce Blogs
Managed Services: The Go-to Model for Salesforce Users
The global managed services market is anticipated to reach the $275 billion mark by 2026 with an 11 per cent CAGR - showing rising demand…
Top Salesforce Implementation Companies in New Jersey in 2024
In the modern business landscape, where customer relationships are at the heart of success, companies need robust tools to manage interactions and drive growth. Salesforce,…
Integrating and Automating B2B Sales Workflows with Custom Salesforce Integrations
When you think about the complex world of B2B sales, it’s clear that there are a lot of moving parts. Sales teams juggle multiple tasks—from…
Popular Salesforce Videos
Basic Concepts of Salesforce | Salesforce Training Online
This video session on Salesforce online training covers the basic concepts of Salesforce and will give intense knowledge on Salesforce at a very high level.…
Outcome Management in Salesforce Nonprofit Cloud
With a good grasp of your organization’s outcomes, you will have an easier time gauging the impact your organization has on the world. This is…
8 Steps to Launch Your App on Salesforce AppExchange
AppExchange is the largest business app store in the world, with over 4,000 apps and millions of users. In this video, we will guide you…