-
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, 9 months ago by
Prachi.
-
This discussion was modified 6 years, 8 months ago by
Forcetalks.
-
This discussion was modified 6 years, 8 months ago by
Forcetalks.
-
This discussion was modified 6 years, 9 months ago by
Log In to reply.
Popular Salesforce Blogs
Top Mistakes to Look Out for While Hiring Salesforce Professionals
With Salesforce becoming the top CRM product globally, the need for Salesforce implementation and administration in organizations is increasing every day. This has resulted in…
Your Salesforce Developer Is Not an AppExchange Developer, and the Gap Costs About Six Weeks
Everyone who has ever cooked a great dinner party has, at some point, been told they should open a restaurant. It is a compliment, and…
Why Salesforce has become #1 CRM?
In 2017, International Data Corporation (IDC) in its latest Worldwide Semiannual Software Tracker named Salesforce the #1 CRM provider. Notably, it’s the fourth time Salesforce…
Popular Salesforce Videos
Can Salesforce Developers and Consultants Choose Architect Track?
A Salesforce Consultant works to help companies meet their missions by driving client-specific implementation as well as ongoing system improvements on the Salesforce platform. The…
MuleSoft Integration: Google Ads Lead Form to Salesforce - Learn Salesforce Series by Algoworks
MuleSoft integration: Google Ads lead form to Salesforce. In this video, learn how MuleSoft can be used to integrate Salesforce with Google Ads lead form.…
In App Guidance | Salesforce Tutotial
In this video, we take a look at one of the new features from the Salesforce Summer '19 release - In-App Guidance. We explain what…