vs-deploy icon indicating copy to clipboard operation
vs-deploy copied to clipboard

Feature Request: Deploy to Dynamics 365

Open ghost opened this issue 7 years ago • 8 comments

If you could manage the bridge from vscode to dynamics 365 webresources that would be amazing. I know that this would be extremely difficult I guess.

ghost avatar Dec 12 '16 07:12 ghost

Is there something like a (REST) API that can be used to upload and/or create webresources?

How do you upload these resources?

mkloubert avatar Dec 12 '16 08:12 mkloubert

For the newbie user, they'd upload those via a form. There are a lot of C# methods to do it. There is a REST api, but I don't know of a way to upload webresources via that way. Maybe have a look at XrmToolBox WebResourceManager. Usually ppl use that or a Visual Studio (not Code ;)) integration.

ghost avatar Dec 12 '16 08:12 ghost

According to this article (Full URL chapter) web resources can be accessed via an URL like https://MyOrganization.crm.dynamics.com/WebResources/new_/test/test.htm.

Is it also possible to upload files via WebDAV by using basic authentication, e.g.?

This would be a great chance to implement such a target :D

mkloubert avatar Dec 12 '16 10:12 mkloubert

As you can see, the target is only virtual, the webresource is stored in a MSSQL DB. I don't know a way how to create one via JavaScript that is why I think it is so difficult. And Dynamics is proprietary and mainly focused on the cloud so you cannot install something on the server.

ghost avatar Dec 12 '16 12:12 ghost

What I mean is:

Maybe it is possible to upload via a "raw" HTTP (PUT) request with your credentials and a tool like cURL or a tool that is similar or your web browser:

curl -T .\localTest.htm https://MyOrganization.crm.dynamics.com/WebResources/new_/test/test.htm --user MyOrganization\con-ssc:password

In that case, WebDAV works as a layer for any operations of Microsoft Dynamics: I do a simple and common request to the URL of the web resource and inside Dynamics, Microsoft does "the magic" with MSSQL and all the things I do not need to do.

The only thing I get is a HTTP response to check if anythings worked fine.

mkloubert avatar Dec 12 '16 19:12 mkloubert

Well, you can create an online trial and give it a go :)

ghost avatar Dec 13 '16 07:12 ghost

Great! 👍

I will try it the next days...

mkloubert avatar Dec 14 '16 00:12 mkloubert

https://github.com/davidyack/gulp-webresource I found this the other day for Dynamics 365 online. If someone could add NTLM auth too for on premise that would be great.

ghost avatar Mar 20 '17 08:03 ghost