2 Replies Latest reply on May 17, 2018 9:40 AM by Remi Chaffard

    Get node per ID

    Remi Chaffard

      Hi,

       

      Is it possible with tpl language to retrieve a node with its nodeID ? As we do with lookup in the search queries ?

       

      Thanks

      Rémi

        • 1. Re: Get node per ID
          Andrew Waters

          No - why would you want to do that?

          • 2. Re: Get node per ID
            Remi Chaffard

            Well, I'm currently developing some patterns adding an attribute to various node kind. During development I made some mistakes and would like to withdraw this attribute from a specific node.

            My idea is to have a small pattern doing that triggering on an event. We can pass nodeID to the event. Since I already have a small script sending events to our appliance for several topics, it is easy.

             

            I made a small assumption instead of searching all node kinds, is it possible to do that:

             

            search(nodeKind1, nodekind2 where #id = 'xyz');

             

            Thanks

            Rémi