how to use this library? I can do nothing with that... for example retrive

Jul 24, 2013 at 9:27 AM
I am doing the following things.
1) Created new WebResource HTML page with the following script:
<html>
    <head>
        <title></title>
        <script type="text/javascript" src="new_CrmRestKit"></script>
        <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.js"></script>
        <script type="text/javascript">
            debugger;
            var entityName = parent.Xrm.Page.data.entity.getEntityName();
            var entityId = parent.Xrm.Page.data.entity.getId();
            var test = CrmRestKit.Retrieve(entityName, entityId, ["address1_line1", "address1_line2"], false);
        </script>
    </head>
    <body>
    
    </body>
</html>
2) added this webresource to the form of Account entity
3) when I debug in IE I can see the following message from the test.responseText property:
"Resource not found for the segment 'accountSet'."

What am I doing wrong?
Jul 24, 2013 at 10:01 AM
I understood what I had been doing wrong. But now the issue is that I can't to the same with custom entities.
Coordinator
Jul 30, 2013 at 8:31 AM
Hi SergeyBan,

sorry for my late response. The ODATA endpoint expects the schema-name of the entity not the logical name. So for instance you created a custom entity with the schema-name "new_FooBar" you query this entity with: CrmRestKit.Retrieve("new_FooBar", %recordid%, %columns%). You can find some more information in this article:
I hope this helps.

Daniel
Marked as answer by thuld on 11/12/2013 at 12:34 PM