salesforce-marketingcloud / FuelSDK-Node

BSD 3-Clause "New" or "Revised" License
49 stars 24 forks source link

[BUG] Calling client.dataExtensionRow() gives the error of ERR_INVALID_ARG_TYPE and crashes the node app. #47

Open aks7400 opened 1 year ago

aks7400 commented 1 year ago

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: 'foo@bar.baz' }

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

Screenshot 2023-07-11 at 3 06 51 PM

Environment

The bug has the severity