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)

Use TypeScript with a Dynamics CRM 2013 Package

(0) ShareShare
ReportReport
Posted on by 204

Hi,

I am able to create and deploy JavaScript files as webresources to Dynamics CRM through a Visual Studio package of type Dynamics CRM 2013 package. Is it possible to use TypeScript here? I cannot add any TypeScript file to the project via right click - add - new item...

Kind regards,

Kai

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at

    Hi Kai,

    you can add any javascript file as web resource. Otherwise first create a blank javascript file and then update type script there.

    Thanks,

    Sandeep

  • KaiHartmann1981 Profile Picture
    204 on at

    Hi Sandeep,

    thank you for the info. But how would Visual Studio know to compile the TypeScript to JavaScript?

  • Suggested answer
    sandeepstw Profile Picture
    4,601 on at

    hi,

    Install type script package in vs.

    www.microsoft.com/.../details.aspx

  • Verified answer
    KaiHartmann1981 Profile Picture
    204 on at

    Hi Sandeep, thanks for the hints.

    I had to do some additional stuff to get it to work, though. I created a 'Dynamics CRM 2013 Package' (needs the Microsoft CRM Developer Toolkit) in Visual Studio, and after installing TypeScript, added another project of type 'HTML Application with TypeScript' to the solution.

    Afterwards I added a post build action to this project, which copies the compiled JavaScript files to the Dynamics project. After adding these files there everything works fine.

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