Consume a Data-Transformation
Consume a Data-Transformation to use in your project.
const dt = require('linkapi-sdk/core/dt');
const result = await dt.transform('yourDT', 'param1', 'param2');
Get a data-transformation file and store in a variable. Call the method when you want.
const dt = require('linkapi-sdk/core/dt');
const yourDt = await dt.get('yourDT');
const result1 = await yourDt('param1'); // first call
const result2 = await yourDt('param2'); // second call
Updated over 4 years ago