Workflow action to send magic link
-
I have a request from users to be able to send a magic link for a giving contact/group when updates are required or some other criteria happens. This seems like a good option for Workflows, but that isn't an available action. I see there is a Custom Action option. How would we go about creating custom workflow actions?
-
For anyone coming to this later in reference to creating a custom action for workflows, there's a sample in the theme source code: https://github.com/DiscipleTools/disciple-tools-theme/blob/ff8682da970893cd4927f813d45a77e0b9aca77c/dt-workflows/workflows-defaults.php#L39-L52
-
This sounds useful
-
I think the tricky part will be the logic to determine if it has been executed or not. Otherwise it's going to keep sending the same link over and over. Maybe it could store something in the database (post meta data?) that logs the last time it was sent and not send it again for a period of time or until the criteria are not met and then met again (that sounds tricky but most accurate)