This seems basic, but I can't override the design-time properties of an email component, e.g. fromEmail, body, and so on. The code below, attached to the click handler of an action on a table component, executes without error but doesn't set the property values. The email goes out with the properties set at design time. What am I doing wrong?
// address obscured for privacy
console.log('email click handler');
SendEmail.fromEmail = 'c...@....com';
SendEmail.toEmail =
table7.selectedRow.preferred_email;
SendEmail.body = 'You have been assigned a request by the ... Committee';
SendEmail.subject = '... Committee volunteer request';
SendEmail.trigger();
For the email query, I'd recommend using additionalScope to pass values into the query when it's triggered. In order to use additionalScope, you also have to add these dynamic variables to the email query. The values will be red/undefined because they won't get defined until you trigger your additionalScope event: