Hi
I've created a flowchart for oppertunities, in which there is a script which sends emails:
By default the email gets sent using the system-account, but I want to send it as the user which is assigned to the opportunity.
I already tried it by adding " 'from', assignedUser.emailAddress, ", but then the email does not get send at all.
How can I send the email as a different user than System?
I've created a flowchart for oppertunities, in which there is a script which sends emails:
Code:
while($outerPosition < array\length($oppertunityContactIds),
$emailAdresse = record\attribute('Contact', array\at($oppertunityContactIds, $outerPosition), 'emailAddress');
$emailId = record\create(
'Email',
'to', $emailAdresse,
'status', 'Draft',
'parentId', entity\attribute('id'),
'parentType', 'Opportunity'
);
ext\email\send($emailId);
);
I already tried it by adding " 'from', assignedUser.emailAddress, ", but then the email does not get send at all.
How can I send the email as a different user than System?

Comment