You need to sign in to do that
Don't have an account?
Angel Z
lightning component to populate EventWhoIds
Hi all,
I want to use e.force:createRecord to create an event and attach multiple contacts to it.
It does not work. Any ideas?
I want to use e.force:createRecord to create an event and attach multiple contacts to it.
console.log(component.get("v.contactIds")); var createEvent = $A.get("e.force:createRecord"); createEvent.setParams({ "entityApiName": "Event", "defaultFieldValues": { 'WhatId' : component.get("v.recordId"), 'EventWhoIds' : component.get("v.contactIds") } }); createEvent.fire();
It does not work. Any ideas?
The contacts are added after the event has been created.