Dataset Tags in Workflows Not accessible

NateBI
NateBI Contributor

Hi Team,

How do I access the 'tags' variable from the Get Metadata function output in Workflows. The option isn't included in the children:

image.png

however in code engine this is available:

image.png

Any thoughts please let me know.

Tagged:

Answers

  • brycec
    brycec Domo Employee

    That's not supported in that package in the current implementation. You can create an idea in the Ideas Exchange if that's something you would like added.

    If you want to instead create your own Code Engine function to achieve that, you can using the following:

    const codeengine = require('codeengine')
     
    async function getTags(datasetId) {
      const api = `/api/data/v3/datasources/${datasetId}`;
      const response = await codeengine.sendRequest("GET", api);
      console.log(response);
      let array = JSON.parse(response.tags);
      return array;
    }
    

    Was this comment helpful? Click Agree or Like below.
    Did this comment solve your problem? Accept it as the solution!

  • NateBI
    NateBI Contributor

    Thanks @brycec - ironically I started with code engine before discovering the functions. I'll write an idea.