在 CRM 4.0 的实体视图中添加外部链接
在 CRM 4.0 中,我希望(如果可能)直接从多个实体的视图(例如“我的帐户”)打开外部链接。执行此操作后,应在外部系统中打开一个带有参数化 URL 的新浏览器窗口。理想情况下,记录行上的链接、视图中的工具栏按钮或“更多操作”列表中的操作。这可能吗?
我想这将是某个地方的 JavaScript,但我不确定扩展点(ISV.config?),因为视图中没有加载任何表单。这与关联视图无关。
In CRM 4.0, I would like (if possible) to open an external link directly from a view of several entities (for example 'My accounts'). When this action is taken, a new browser window with a parameterized url should open into an external system. Ideally either a link on the record row, a toolbar button in the view or an action in the 'More actions' list. Is this possible?
I imagine this would be a javascript somewhere, but I am not sure about the extension point (ISV.config?) as there is no form loaded in the view. This is not related to associated views.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以通过修改 ISV.config (XML) 来实现。 http://msdn.microsoft.com/en-us/library/cc150910.aspx
您需要考虑在以下 xpath 下添加实体条目(显示帐户示例)
/ImportExportXml/Entities/Entity[name='account']/Grid/MenuBar/ActionMenu
或者
/ImportExportXml/Entities/Entity[name='account']/Grid/MenuBar/Button
SDK 是:
MenuItem 节点支持 JavaScript属性(确保您对 JavaScript 进行了 XML 编码)。
不确定您想要将什么参数化为您的网址。如果您使用模式对话框,则网格中选定的记录将作为对话框参数传递到窗口上。请记住,如果您计划通过查询字符串传递许多选定的 GUID,则 IE 具有最大 URL 长度。完整的 MSDN 示例:演练:捕获网格中所选记录的 GUID 值
Its possible by modifying the ISV.config (XML). http://msdn.microsoft.com/en-us/library/cc150910.aspx
You'll want to look at adding an entry your entity under the following xpaths (account example shown)
/ImportExportXml/Entities/Entity[name='account']/Grid/MenuBar/ActionMenu
or
/ImportExportXml/Entities/Entity[name='account']/Grid/MenuBar/Button
Example in SDK is:
The MenuItem node supports a JavaScript attribute (make sure you XML encode your javascript).
Not sure what you want to parameterize to your url. If you use a modal dialog, the selected records in the grid are passed as dialogArguments on the window. Remember that IE has a maximum URL length if you were planning on passing many selected GUID's by query string. Full MSDN example: Walkthrough: Capturing the GUID Values of Records Selected in a Grid