ダイナミクス CRM を使用しています。HTML Web リソースを 1 つ作成し、連絡先フォームに追加しました。コード、
<html>
<head>
<title>OData</title>
<meta charset="utf-8">
</head>
<body>
<script type="text/javascript">
function getAllAttribute() {
document.getElementById("demo").innerHTML = Xrm.Page.getAttribute();
}
</script>
<button onclick="getAllAttribute();">Attributes!</button>
<p id="demo">Value will be displayed here</p>
</body>
</html>
さて、属性をクリックすると!ボタン、demo
段落がnullになる、なぜページ上のすべての属性の名前を与えていないのですか?