• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Accessing data from email template

    scheduled pinned locked moved Developers Zone
    4 posts 2 posters 2.5k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • V offline
      Velo17
      global:last-edited-by,

      Hello everyone!

      I have a problem with sending node data using an email template. When I manually run the template with the linked script, I see a nice HTML table of data (it is the node data table example in the documentation).

      But when I use the send email trigger rule to start the operation, I cant specify my script and thus the template of course does not access the data provided from the script:

      var nodes = mcApi.node().getAll(options);

      and in the mail template the connection is provided thru

      <#list nodes.data as item>

      So the question is probably how can I access the nodes data from within the mail template without using a script 🙂

      jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @Velo17
        global:last-edited-by,

        @Velo17 we cannot access node data. Kindly create a ticket to pass resource(node, gateway, sensors, whatever used on condition)

        one-reply-to-this-post last-reply-time reply quote 0
        • V offline
          Velo17
          global:last-edited-by,

          okay, i added a ticket. Good to know that I dont need to search further 🙂

          jkandasaJ one-reply-to-this-post last-reply-time reply quote 1
          • jkandasaJ offline
            jkandasa @Velo17
            global:last-edited-by,

            Ticket for this request: https://github.com/mycontroller-org/mycontroller/issues/350

            one-reply-to-this-post last-reply-time reply quote 0
            • first-post
              last-post

            1

            online

            644

            users

            532

            topics

            3.4k

            posts
            Copyright © 2015-2025 MyController.org | Contributors | Localization