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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to write simple Javascript Web api

(1) ShareShare
ReportReport
Posted on by 314

how to implement simple Javascript api in dyanamics crm? I have not write it before, have I need to import any solution for writing Web api or link any Js files ? or I can simply write  and link to form on onload event like we use for validation of form

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: How to write simple Javascript Web api

    Goutam,

    I wish I have seen this video before, very helpful

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: How to write simple Javascript Web api

    Hi,

    See here how to use  CRMRestBuilder to generate Javascript API code.

    www.youtube.com/watch

  • Suggested answer
    Shahbaaz Ansari Profile Picture
    6,211 on at
    RE: How to write simple Javascript Web api

    Hi Sharma,

    You can check below link for adding Html and Javascript in your entity form

    crmbook.powerobjects.com/.../html-web-resources

    www.tutorialspoint.com/.../microsoft_crm_html_web_resources.htm

    community.dynamics.com/.../152985

    Best Regards,

    Shahbaaz

  • Verified answer
    RaviKashyap Profile Picture
    55,410 Moderator on at
    RE: How to write simple Javascript Web api

    Hi Ishan,

    If you haven't written any JavaScript in CRM then I would suggest you to go with this blog which talks about JS basics.

    community.dynamics.com/.../javascript-basics

    Once you are familiar with The JS basics, you could write more advance JS including WEB API.

    Could you please share your requirement also? It is possible that you may not need web api and the simple JS can work?

    Hope this helps.

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,188 Moderator on at
    RE: How to write simple Javascript Web api

    Hi Ishan,

    You can download the CRM Rest Builder (Web Api Builder) from Jason Lattimer. It will provide you an easy to use interface to create Web Api queries in your application as well the source code (JavaScript) for how to use that:

    community.dynamics.com/.../crm-rest-builder-v2-5-0-0

    If you are on Dynamics CRM v9, you can still use the Web Api mentioned above or you can use the new Xrm.WebApi classes by Microsoft. There is no tool (such as Rest Builder) that will provide you that functionality yet, but the logic is very straight forward. You can take a look at the following blog articles on how to create Web Api calls with v9:

    butenko.pro/.../microsoft-dynamics-365-v9-0-usage-of-new-oob-webapi-functions-part-1

    There are links to part 2 and 3 from this blog article.

    Hope this helps.

  • Verified answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: How to write simple Javascript Web api

    Hello Ishan ,

    Could you please check below article and  MSDN references . Hope this helps.

    docs.microsoft.com/.../xrm-webapi

    msdn.microsoft.com/.../gg334279.aspx

    community.dynamics.com/.../ms-crm-2016-web-api-operations-retrieve-single

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans