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

Jul 24, 2013 at 10:27 AM
I am doing the following things.
1) Created new WebResource HTML page with the following script:
        <script type="text/javascript" src="new_CrmRestKit"></script>
        <script type="text/javascript" src=""></script>
        <script type="text/javascript">
            var entityName =;
            var entityId =;
            var test = CrmRestKit.Retrieve(entityName, entityId, ["address1_line1", "address1_line2"], false);
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 11: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.
Jul 30, 2013 at 9: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.

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