Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
2200 Widoki

I'm trying to send an email with an automated action from the hr.applicant model.

hr.applicant has the field 'email_from' defined in it.  I'm using the default email template 'Applicant: Acknowledgement' in my automated action, and this template uses the 'email_from' data to populate the 'To' address for the email.

The action is set to 'On Creation' for a trigger.

When a create a new Application record, the automated action is triggered, but the 'email_from' address contained in the Application is not inserted into the email, and it does not therefore get sent.

If I used the same template from the 'Send a message' button in the Chatter, the email is sent perfectly using the email address in the 'email_from' field.

It's just my automated action that isn't working.

Why isn't it working?  Do I need to get the context of the record somehow before sending the email?

Awatar
Odrzuć
Najlepsza odpowiedź

Hi,

In the automated action, the majority try to use the 'mail.compose.message' model. and when you pass the template from the model, as per the case it needs to create the partner and the partner also satisfies the domain constraints. if you are using the mail_template model we can directly pass the email_from field

Regards

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
cze 22
3026
1
lip 25
236
5
maj 25
17619
0
kwi 25
891
1
kwi 25
1244