简体   繁体   English

使用javascript同步获取CRM 2011中的元数据

[英]Fetch Metadata in CRM 2011 using javascript synchronously

Is there any way to fetch metadata from CRM 2011 using javascript in a synchronous manner? 有没有办法以同步方式使用javascript从CRM 2011中获取元数据? If it is, could someone please hit me up with some sample code present in the SDK (I couldn't find it) or maybe your own code? 如果是的话,有人可以用SDK中的一些示例代码(我找不到它)或者你自己的代码来打我吗?

Thanks. 谢谢。

In the SDK, in the samplecode\\js\\soapforjscript\\soapforjscript\\scripts\\sdk.metadata.js file there are RetrieveAllEntitiesAsync, RetrieveEntityAsync, and RetrieveAttributeAsync examples. 在SDK中,在samplecode \\ js \\ soapforjscript \\ soapforjscript \\ scripts \\ sdk.metadata.js文件中有RetrieveAllEntitiesAsync,RetrieveEntityAsync和RetrieveAttributeAsync示例。 To make synchronous, change the third parameter of the req.open statements to false . 要进行同步,请将req.open语句的第三个参数更改为false Then you can remove the onreadystatechange handler and handle the response immediately after the req.send(request); 然后你可以删除onreadystatechange处理程序并在req.send(request);之后立即处理响应req.send(request); statement. 声明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM