Thank you in advance.
Deze vraag is gerapporteerd
Hi,
- Action: Send WhatsApp Message → select your approved template
Hope it helps
Hello Joaquin Inamine,
I hope you are doing well
- Set up an Automated Action: Model Discuss Channel, Trigger On Creation, Filter [("channel_type","=","whatsapp")], Action Execute Python Code:
WELCOME_TEXT = "Thank you for contacting us, we'll get back to you shortly."
if record.channel_type == 'whatsapp':
already = env['mail.message'].search_count([('model', '=', 'discuss.channel')('res_id', '=', record.id), ('author_id', '=', env.user.partner_id.id)])
if not already:
record.message_post(body=WELCOME_TEXT, message_type='whatsapp_message', subtype_xmlid='mail.mt_comment')
I hope this information helps you
Thanks & Regards,
Kunjan Patel
Hi Kunkan Patel
I followed all the steps in your explanation, but when I try to save, I get the error "IndentationError: unexpected indent at line 2 if record.channel_type == 'whatsapp':"
What could be the problem?
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
|
2
jun. 26
|
316 | ||
|
|
1
mei 26
|
369 | ||
|
|
2
feb. 26
|
1626 | ||
|
|
4
feb. 26
|
8762 | ||
|
|
0
okt. 25
|
1768 |
Hello Joaquin Inamine,
I have updated answer now you can try that.
hope it helps