Hi Friends,
For your understanding, I have solution and added configuration.html web resource to configuration section of solution.
What i am trying?
Using Xrm.WeApi library to retrive and create records in dynamics crm entity.
When i execute below code i get error in script. error :""Cannot read property 'account' of null"
======================================
Xrm.WebApi.retrieveMultipleRecords("account", "?$select=name&$top=3").then( function success(result) { for (var i = 0; i < result.entities.length; i++) { console.log(result.entities[i]); } // perform additional operations on retrieved records }, function (error) { console.log(error.message); // handle error conditions } );
=======================================
Also it works if my HTML resource is inside entity form but not working in solution configuration section.
did you face the same issue?Any solution? how to use xrm.webapi in this case ?
Thanks in advance.
Regards,
Santosh
*This post is locked for comments