Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/383.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从Microsoft CRM-javascript控制台获取guid id_Javascript_Console_Microsoft Dynamics - Fatal编程技术网

从Microsoft CRM-javascript控制台获取guid id

从Microsoft CRM-javascript控制台获取guid id,javascript,console,microsoft-dynamics,Javascript,Console,Microsoft Dynamics,显然,在早期版本的MicrosoftCRM中,可以使用Javascript控制台,使用synatax(如:Account、Contact)在记录的详细页面中获取记录Guid Xrm.Page.data.entity.getId(); frames[0].Xrm.Page.data.entity.getId() 参考: 我无法在CRM 2015中重复这一点 > frames[0].Xrm.Page.data.entity.getId(); Unable to get property 'en

显然,在早期版本的MicrosoftCRM中,可以使用Javascript控制台,使用synatax(如:Account、Contact)在记录的详细页面中获取记录Guid

Xrm.Page.data.entity.getId(); frames[0].Xrm.Page.data.entity.getId()

参考:

我无法在CRM 2015中重复这一点

> frames[0].Xrm.Page.data.entity.getId();
Unable to get property 'entity' of undefined or null reference


> Xrm.Page.data.entity.getId();
Unable to get property 'entity' of undefined or null reference
然而:

> this
给我的垃圾包括

用户_GUID:“{98D61030-7513-4EAA-A243-1D29FA99E0A0}”

IE控制台的屏幕截图


这是由于Dynamics CRM(也称为Turbo Forms)中的新表单呈现而导致的更改

你可以试试看

frames[1].Xrm.Page.data.entity.getId();

这是由于Dynamics CRM(也称为Turbo Forms)中的新表单呈现而导致的更改

你可以试试看

frames[1].Xrm.Page.data.entity.getId();

您能在javascript控制台中看到任何错误吗?谢谢您的及时回复。我在问题中添加了代码和错误。您何时调用此代码?在控制台上单击按钮或页面加载。查看添加的图像…您能在javascript控制台中看到任何错误吗?感谢您的及时回复。我在问题中添加了代码和错误。您何时调用此代码?在控制台上单击按钮或页面加载。请参阅添加的图像。。。