Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
marketing socialmarketing email iap #marketing
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
marketing socialmarketing email iap #marketing
O tym forum
  1. Marketing
  2. Forum

How to send invitation e-mail to a survey in marketing automation

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
actionsurveyservermarketingautomation
4 Odpowiedzi
5320 Widoki
Awatar
Dominik Jenzer

When you share (button) a survey, you get an email template where you can add a recipient (eg customer).


Can anyone guide me creating a server action that does this within a marketing automation activity? I think, the server action has to do two thints:

1. Set the recipient

2. Send the email


Thanks for support

0
Awatar
Odrzuć
Awatar
Gracious Joseph
Najlepsza odpowiedź

To send a survey invitation email automatically within a Marketing Automation Activity in Odoo, you can use a Server Action to generate and send the survey email. Below is a step-by-step guide on how to achieve this:

1. Prerequisites

  • Ensure the Surveys module is installed.
  • Create or have an existing survey ready to send.
  • Make sure you have a working email setup configured in Settings > Email.

2. Create an Email Template

  1. Navigate to Email Templates:
    • Go to Settings > Technical > Email > Templates.
    • Click Create to design a new email template for your survey.
  2. Set the Template Details:
    • Name: Enter a meaningful name (e.g., "Survey Invitation").
    • Model: Choose the relevant model (e.g., "Contact" or "Survey").
    • Body: Design the email body and include the survey link. You can use placeholders for dynamic fields:
      Hello ${object.name},
      
      We invite you to participate in our survey. Please click the link below:
      
      ${object.response_url}
      
      Thank you!
      
    • Save the template.

3. Create the Server Action

  1. Navigate to Server Actions:
    • Go to Settings > Technical > Automation > Server Actions.
    • Click Create to define a new server action.
  2. Configure the Action:
    • Name: Enter a descriptive name (e.g., "Send Survey Invitation").
    • Model: Select the model where the server action will run (e.g., "Survey", "Contact", or "Lead").
    • Action To Do: Choose Execute Python Code.
  3. Add Python Code: Use the following Python script to send the survey email dynamically:
    template_id = env.ref('your_module_name.email_template_survey_invitation')
    if template_id:
        for record in records:
            template_id.send_mail(record.id, force_send=True)
    
    • Replace your_module_name.email_template_survey_invitation with the technical name of the email template created in Step 2.

4. Add the Server Action to Marketing Automation

  1. Create or Edit a Campaign:
    • Go to Marketing > Automation.
    • Create a new campaign or open an existing one.
  2. Add an Activity:
    • Add an activity that triggers the server action. For example:
      • Trigger Type: Email Sent, Record Creation, or Specific Time Delay.
      • Action: Select the server action created in Step 3.

5. Test the Setup

  • Trigger the marketing campaign or activity.
  • Verify that:
    • The email is sent to the recipient.
    • The survey link is included and functional.

6. Additional Notes

  • Dynamic Survey Links: If the survey is linked to a specific recipient, ensure the email template dynamically includes their response link using the response_url field.
  • Error Handling: Include logging in the server action to capture any errors:
    try:
        template_id.send_mail(record.id, force_send=True)
    except Exception as e:
        _logger.error("Error sending survey invitation: %s", e)
    

Outcome

When the marketing automation activity triggers the server action, it will dynamically send the email to the recipients with the survey link. This allows you to automate survey invitations seamlessly.

Let me know if you need further assistance!

1
Awatar
Odrzuć
Awatar
Pablo Lozano
Najlepsza odpowiedź

Yes the solution in odoo 16 (17 and 18), you can create a email template in the model you need example Sales Order.
With Qweb edit the template and write: you can sustitute the object.x_studio_many2one_field_SLIMM.get_start_url() with link you have of survey.



    <a t-att-href="object.x_studio_many2one_field_SLIMM.get_start_url()" style="box-sizing:border-box;background-color: #875A7B; padding: 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;">

        Survey

    </a>

And go to Technical -> Automated Actions, you push in new and action to do send by email.

0
Awatar
Odrzuć
Awatar
Micheal KARL
Najlepsza odpowiedź

Hi, have you found a solution for that?

Best regards, michael 

0
Awatar
Odrzuć
Awatar
Jules
Najlepsza odpowiedź

Hello, 

I'm also looking to do this. 

Have you found the solution?

Thanks

0
Awatar
Odrzuć
Pablo Lozano

I posted one of possible solution!

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Send emails with automated action when a purchase request is created, odoo 13 community Rozwiązane
action mail server automation
Awatar
Awatar
1
mar 24
2819
Trigger on lead automation - marketing.campaign module
action marketing lead automation
Awatar
1
cze 22
5903
Double Opt-in - Marketing automation
marketing automation
Awatar
0
maj 25
1575
Marketing Automation
marketing automation
Awatar
1
lut 25
8148
difference between server actions and client actions in Odoo? Rozwiązane
action server
Awatar
Awatar
Awatar
Awatar
3
cze 23
13347
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now