shridarpatil / frappe_whatsapp

WhatsApp cloud integration for frappe
https://www.youtube.com/watch?v=nq5Kcc5e1oc
Other
188 stars 169 forks source link

feat: better way to do WhatsApp Notification with Notification Type "… #107

Open HarryPaulo opened 2 weeks ago

HarryPaulo commented 2 weeks ago

This change aims to improve the way of creating events to trigger WhatsApp notifications.

  1. Created a way to set a field on relative doctype on send a whatsapp message, for this was created a section called "Set Property After Alert"

  2. Allow created more then one WhatsApp Notification with Notification Type "Event Schedule" for the same "Event Frequency" but with diferente propouse

Event method was ajusted to look for a list of events...

  1. method "send_scheduled_message" was refactored to allow send template using for a Event Schedule

  2. Every message sended try to add doc references "reference_doctype" and "reference_name" and create a whatsapp message

  3. Refactored the creationg of "Scheduled Job Type" on insert or delete a "WhatsApp Notification"

  4. Better text formating for fields parameters using "doc.get_formatted(field.field_name)"

HarryPaulo commented 3 days ago

On this image we have a sample of event notify.

1 - Only send the message on 16h 2 - Look opportunities applying a custom filter and get the custom data object to send all whatsapp notification 3 - Use the phone number based on field: contact_mobile

image