简体   繁体   English

Dynamics Crm - 在 Javascript 中获取快速创建表单加载时的触发查找字段?

[英]Dynamics Crm - Get Triggering lookup field on quick create form load in Javascript?

Does anyone know if its possible to get the lookup field that a quick create form was launched from in javascript.有谁知道是否有可能获得在 javascript 中启动快速创建表单的查找字段。

I know I can get the triggering entity from the below function but want to know if I can also get the field that was used.我知道我可以从下面的 function 获取触发实体,但想知道我是否也可以获取使用的字段。

Xrm.Page.context.getQueryStringParameters() Xrm.Page.context.getQueryStringParameters()

The context is that I have an entity which has multiple lookups to contact, I want to dynamically set a contact type and display different fields in the quick create form based on the contact type.上下文是我有一个具有多个查找联系人的实体,我想动态设置联系人类型并根据联系人类型在快速创建表单中显示不同的字段。 I know I could add a contact type for the user to select but don't want to go down that road.我知道我可以将用户的联系人类型添加到 select,但不想在这条路上添加 go。

I have a feeling what I want to do is not possible but thought I would put it out there and see if anyone has a solution.我觉得我想做的事情是不可能的,但我想我会把它放在那里看看是否有人有解决方案。

Cheers干杯

You can use OOB relationship mappings to copy data from parent entity to child entity.您可以使用 OOB 关系映射将数据从父实体复制到子实体。

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

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