Disciple.Tools Community D.T Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Disicple.Tools
    • Register
    • Login

    Workflow action to send magic link

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 296 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CairoCoderC Offline
      CairoCoder
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • CairoCoderC Offline
        CairoCoder
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • CorsacC Offline
          Corsac
          last edited by

          This sounds useful

          1 Reply Last reply Reply Quote 0
          • CairoCoderC Offline
            CairoCoder
            last edited by

            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)

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post