简体   繁体   English

使用Node.js以编程方式将Web资源上载到Microsoft Dynamics CRM

[英]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.

相关问题 如何使用javascript(node.js)从Microsoft Dynamics CRM接收Webhooks? - How to receive webhooks from Microsoft's dynamics CRM using javascript(node.js)? Dynamics CRM Online + Node.js(请求永远运行/挂起) - Dynamics CRM Online + Node.js (request runns forever /hangs) 来自 Node.js 的 Microsoft Dynamics NAV '18 Web 服务的 NTLM 身份验证失败 - NTLM authentication for Microsoft Dynamics NAV '18 web service from Node.js fails 如何将Dynamics CRM的组织数据服务与Node.js应用程序连接 - How to connect organization data service of dynamics crm with node.js application 以编程方式使用Node.js启动和终止Web浏览器 - Programmatically both start and kill a web browser using Node.js 以编程方式将文件从node.js上载到另一个Web服务器 - Uploading a file programmatically, from node.js, to another web server Node.js:如何轮询网络资源以进行更改? - Node.js: how to poll a web resource for change? 如何通过Node.js中的Web服务上传图像? - How to upload image through web service in node.js? 我可以将使用Node.js制作的网站上传到网络主机吗? - Can I upload a website made with Node.js to a web host? 获取令牌 (node.js) 后与 Dynamics Web Api 连接时出现问题 - Problem connecting with Dynamics Web Api after getting the token (node.js)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM