web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Retrive all accounts using Odata Query

(0) ShareShare
ReportReport
Posted on by

For  Creating new account using javascript  I use this code 

url: serverUrl + "/XRMServices/2011/OrganizationData.svc/AccountSet",

Now I want to retrieve all the account list using javascript odata query.

how can I use?

I tried with this,

  url: serverUrl + "/XRMServices/2011/OrganizationData.svc/Account",         

but its not working.

can u suggest me?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hello,

    Surely this (url: serverUrl + "/XRMServices/2011/OrganizationData.svc/AccountSet) URL will return you all the data, but keep in mind if you have more then 50 records you need to use paging because Rest only return 50 records per page.

    Check RetrieveMultiple function for how to use paging: msdn.microsoft.com/.../gg985387.aspx

  • Community Member Profile Picture
    on at

    Hi himbap,

    Thank you for your responce.

    can u please tell me for query update and delete record??

  • Suggested answer
    anilambadan Profile Picture
    1,160 on at

    Please see the link below

    msdn.microsoft.com/.../gg334427.aspx

    http://asimsajjad.blogspot.co.uk/2012/02/delete-record-using-odata-call.html

     

    Please check the sample code in SDK\SampleCode\JS\RESTEndpoint\JavaScriptRESTDataOperations\JavaScriptRESTDataOperations\Scripts

    thanks

    Anil

  • Community Member Profile Picture
    on at

    Hi,

    I am using jquery in that I want to pass url,

    like in retreive I use

    url: serverUrl + "/XRMServices/2011/OrganizationData.svc/AccountSet",

    so for update and delete,what I have to use?

    and also I want to get  full record  of selected item for that also what should I have to use?

    I already referring this example what you have suggest

    Thank you

  • Verified answer
    anilambadan Profile Picture
    1,160 on at

    If you are using jQuery Please see the examples here...

    SDK\SampleCode\JS\RESTEndpoint\JQueryRESTDataOperations\JQueryRESTDataOperations\Scripts

    thanks

    Anil

  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    You will check SDK you will get sample code for all possible language options. Check sample code directory  SDK\SDK\SampleCode\JS

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
AS-17030037-0 Profile Picture

AS-17030037-0 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans