[英]Upload web resource to Microsoft Dynamics CRM programmatically with Node.js
According to this issue , I would like to upload web resources to a Microsoft Dynamics CRM via Node.js based API. 根据此问题 ,我想通过基于Node.js的API 将Web资源上载到 Microsoft Dynamics CRM 。
Is there a way to do this with things like a common HTTP request? 有没有办法处理常见的HTTP请求?
For example: 例如:
I want to update the resource https://MyOrganization.crm.dynamics.com/WebResources/test/test.htm
. 我想更新资源https://MyOrganization.crm.dynamics.com/WebResources/test/test.htm
。
Is it possible to do someting like that ( cURL example; PUT request): 是否可以做这样的事( cURL示例; PUT请求):
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? 还是有其他方法可以做到这一点?
CRM stores web resources a bit differently. CRM存储Web资源的方式略有不同。 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. CRM不会以其本机html / js / png格式存储Web资源,而是将文件编码并转换为base64字符串,然后存储在Web资源的content
属性中。
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. 同样,要使用RESTful http方法,您还必须使用Web API端点,并尝试使用编码数据作为Web资源的内容来创建Web资源。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.