Server Side Plugin

I am working on a server side plugin, I am running the following script but my return object is empty

function(properties, context) {
        
        let data = properties.data_list.get(0, properties.data_list.length());
    	let dataFields = data[0].listProperties();
    	let dataBlock = [];
        
        data.forEach((v, i, a) => {
       	let obj = new Object()
        	dataFields.forEach(field =>{
            	obj[field] = v.get(field)
        	});
        
        dataBlock.push(obj);           
    	}); 
	
     return {name: dataBlock};
}

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.