Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
9737 Ansichten

What i do:

  • Create a New Lead AND assign a Sales Team
  • Because of the Sales Team there are three Followers for the newly created lead
  • Post a message with message_post()

I would expect that all followers of the new lead will receive an e-mail BUT THEY DONT?!?

The normal E-Mail (the one for the lead creation is send cie E-Mail but messge_post() does not send E-Mails?!? What do i need to do to send E-Mails also when posting a message in code?!?

Here is how i call the message_post: 

leadrecord.message_post(body=recordtext, subject=values['name'], type='email', subtype='mt_lead_create', content_subtype='plaintext')

Also tried with:

leadrecord.message_post(body=recordtext, subject=values['name'], type='notification',  content_subtype='plaintext')

Message is posted BUT no E-Mails are send :( 

Avatar
Verwerfen

I'm trying to do the same. Did you manage to send an email!

Beste Antwort

Try use 'mt_comment' in subtype (since your followers may not be subscribed to 'Lead Created', but most probably are assigned to "Discussion"): 

leadrecord.message_post(body=recordtext, subject=values['name'],  subtype='mt_comment')

Besides, check that your followers' preferences do not contain "Receive Messages" - "Never"

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
1
März 25
4436
2
Feb. 24
12970
1
Dez. 24
1751
2
Jan. 20
15372
16
Aug. 19
10325