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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Visual Studio Support for developing JavaScript

(0) ShareShare
ReportReport
Posted on by 204

Hi,

I am fairly new to JavaScript development in Dynamics CRM, and I am pretty shocked how basic it it out of the box. You just get a plain textbox with no supporting features (not even syntax highlighting) wharsoever, and have to use the browser functionality for debugging.

Is there native support for handling this stuff in Visual Studio? I would like to develop the JavaScript in VS, preferably depploy it from there, and also debug it afterwards. I do not want to copy scripts to Dynamics CRM manually.

Kind regards,

Kai

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rahul G J Profile Picture
    605 on at

    Hi Kai,

    You can write the javascript code wherever you want, once you write the code copy and paste it in CRM. If you do this way you need not deploy your code, you only need to publish your customization.

    On debugging point of view you can open developer window (F12) and place a degubber, you can go ahead and debug your Jscript.

    Thanks!

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

    Hi Kai,

    You can use developers toolkit to develop CRM components like plugin, workflows, scripts, html web resources...

    There is no new toolkit released, but you can use older one (2013) it works with CRM 2016 as well, refer following link it will help you: msdn.microsoft.com/.../hh547404(v=crm.6).aspx

    Thanks

  • KaiHartmann1981 Profile Picture
    204 on at

    Hi Rahul,

    thank you very much for the info. I hoped I could prevent the copy and paste part, and let Visual Studio handle it.

  • KaiHartmann1981 Profile Picture
    204 on at

    Hi HIMBAP,

    thank you, this looks promising, I will try it.

  • KaiHartmann1981 Profile Picture
    204 on at

    Hi,

    HIMBAP, this is the solution.

    After installing the toolkit (only possible for VS 2010 or 2012) I have the option to choose a dedicated project type 'Dynamics CRM 2013 Package' (works even with CRM 2016), where I can develop my JavaScript files.

    When I click 'start' (debugging) it automatically deploys the file to the Dynamics solution into the Webresources.

    The only thing I have to do manually is to publish the changes in the solution, but that's it.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans