-
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
What are Salesforce Big Objects? | The Developer Guide
We are all aware that Salesforce objects are used to manage and tinker with our data. Standard objects, custom objects, and external objects are likely…
How Salesforce Boosted the Reach of MrBeast’s $1M Puzzle
Salesforce partnered with YouTuber MrBeast for a groundbreaking Super Bowl campaign that turned a traditional ad into an interactive $1 million puzzle hunt, massively amplifying…
Top Helpful Youtube Channels To Get You Started With Salesforce
Salesforce skills can help advance careers for beginners or for anyone who wants to get into the Salesforce ecosystem. Job seekers can find high-demand, high-paying,…
Popular Salesforce Videos
3 Must-Have Validation Rules in Salesforce to Save Time and Avoid Costly Mistakes
Validation rules in Salesforce act like quality checks for your data. They help make sure that the data in your Salesforce org is accurate and…
Summer '20 Release - Release Updates Page
Check out the new Release Updates Page. Salesforce Summer '20 is full of amazing features for #AwesomeAdmins! Check out what's new when you follow and…
How To Reset Salesforce Security Token?
Salesforce security token is a case-sensitive unique key that is used to work with Salesforce API. In this video I will show you how to…