FuelSDK-Node
FuelSDK-Node copied to clipboard
[BUG] Calling client.dataExtensionRow() gives the error of ERR_INVALID_ARG_TYPE and crashes the node app.
Describe the bug Calling client.dataExtensionRow() gives the error of ERR_INVALID_ARG_TYPE and crashes the node app.
Expected behaviour Get a List of records from Data Extension based on passed props.
{ Name: 'Email', Value: '[email protected]' }
Code snippet
const ET_Client = require('sfmc-fuelsdk-node');
//....
function getDERecords(){
const client = new ET_Client(clientId, clientSecret);
const deRow = client.dataExtensionRow({
Name: 'CustomActivityDataExt',
props: ['Email'],
});
deRow.get((err, res) => {
if (err) {
console.error(err.message);
} else {
console.log(res.body.Results);
}
});
}
Screenshots
Environment
- SDK Version: 2.4.0
- Node version: 16.16.0
The bug has the severity
- [x] Critical: The defect affects critical functionality or critical data. It does not have a workaround.
- [ ] Major: The defect affects major functionality or major data. It has a workaround but is not obvious and is difficult.
- [ ] Minor: The defect affects minor functionality or non-critical data. It has an easy workaround.
- [ ] Trivial: The defect does not affect functionality or data. It does not even need a workaround. It does not impact productivity or efficiency. It is merely an inconvenience.