I am trying to a note using the latest SDK but I am facing the below issue
const freshdesk = require(’@freshworks/freshdesk’);
let freshdeskObj = new freshdesk({ domain: ${iparams.fdDomain}.freshdesk.com, api_key: iparams.apiKey });
let notes = {};
notes[‘bodyText’] = callbackData;
freshdeskObj.Notes.addNote(65, notes).then(function (result) {
console.log(‘Data’);
console.log(result);
}, function (err) {
console.error(err);
})
I also tried like this freshdeskObj.tickets.addNote(65,notes)…
Refer to the Freshdesk SDK sample app for the sample snippets.
The methods on the documentation under the same header will go on the same object. We will update the documentation to reflect this rightly.