We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I get an JS error when I try the next code:
dynamicsWebApi.retrieveAll("accounts", ["name", "emailaddress1"]).then(function (response) { var records = response.value; console.log(records); }) .catch(function (error) { });
\dynamics-web-api\lib\requests\helpers\parseResponse.js:33 if (object[keys[i]].constructor === Array) { TypeError: Cannot read property 'constructor' of null
As a workaround I have changed line 33 of parseResponse.js, from:
if (object[keys[i]].constructor === Array) {
To:
if (object[keys[i]] != null && object[keys[i]].constructor === Array) {
Hope it helps!
PD: Seems that the error comes because there are accounts without email and calling ".constructor" of if.
The text was updated successfully, but these errors were encountered:
Thank you so much @estpla. I will apply your fix in the next patch release!
Sorry, something went wrong.
3c4417f
AleksandrRogov
No branches or pull requests
Hi,
I get an JS error when I try the next code:
As a workaround I have changed line 33 of parseResponse.js, from:
To:
Hope it helps!
PD: Seems that the error comes because there are accounts without email and calling ".constructor" of if.
The text was updated successfully, but these errors were encountered: