• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Accessing data from email template

    Scheduled Pinned Locked Moved Developers Zone
    4 Posts 2 Posters 2.3k 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.
    • V Offline
      Velo17
      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 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @Velo17
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • V Offline
          Velo17
          last edited by

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

          jkandasaJ 1 Reply Last reply Reply Quote 1
          • jkandasaJ Offline
            jkandasa @Velo17
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            0

            Online

            587

            Users

            529

            Topics

            3.4k

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