0
votes

According to this issue, I would like to upload web resources to a Microsoft Dynamics CRM via Node.js based API.

Is there a way to do this with things like a common HTTP request?

For example:

I want to update the resource https://MyOrganization.crm.dynamics.com/WebResources/test/test.htm.

Is it possible to do someting like that (cURL example; PUT request):

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

Or is there another way to do that?

1

1 Answers

0
votes

CRM stores web resources a bit differently. CRM does not store web resources in their native html/js/png format, rather, the files are encoded and converted to a base64 string and stored in the content attribute of a web resource.

Also to use RESTful http methods, you would have to use the Web API endpoint and try to create a Web Resource with the encoded data as the content of the web resource.