简体   繁体   English

使用Xrm.Utility.openEntityForm()覆盖不同记录中的字段

[英]Using Xrm.Utility.openEntityForm() to override fields in different record

I am currently utilizing Xrm.Utility.openEntityForm to pass field values to a different record in crm. 我目前正在使用Xrm.Utility.openEntityForm将字段值传递给crm中的其他记录。

I want to be able to overwrite the existing field values in the destination record with the parameter values I send with the method. 我希望能够用我通过该方法发送的参数值覆盖目标记录中的现有字段值。

My current code line looks like this: 我当前的代码行如下所示:

Xrm.Utility.openEntityForm("account", GUID, parameters);

The GUID is obtained through a lookup field in the current form, as well as the parameters. GUID是通过当前形式的查找字段以及参数获得的。

The code currently navigates to the specified record based on the GUID and writes the parameters to only the empty fields. 该代码当前基于GUID导航到指定的记录,并将参数仅写入空白字段。 Non empty fields are not affected by this. 非空字段不受此影响。

I understand that the current approach may not be the best option for working with existing records. 我了解当前的方法可能不是处理现有记录的最佳选择。 I want to be able to overwrite existing fields; 我希望能够覆盖现有字段; am I going in the right direction? 我朝着正确的方向前进吗?

There are some points to be considered while we are trying to set values using OpenEntityForm like values passed cant be script, values passed must be valid as per the data type and so on. 在尝试使用OpenEntityForm设置值时,需要考虑一些要点,例如传递的值不能是脚本,传递的值必须根据数据类型有效,依此类推。 MSDN documentation here has some more details on this. 此处的 MSDN文档中对此有更多详细信息。 Hope this guides you closer to solving the issue. 希望这可以指导您进一步解决问题。

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

相关问题 Xrm.Utility.openEntityForm(entityType,null,参数) - Xrm.Utility.openEntityForm(entityType, null, parameters) Xrm.Utility.openEntityForm设置查找字段 - Xrm.Utility.openEntityForm setting Look Up field CRM Dynamics,如何使用一种形式传递值,并使用Xrm.Utility.openEntityForm()在新的Entity(form)中设置值; - CRM Dynamics , How to pass values from one form and set the values in a new Entity(form) using Xrm.Utility.openEntityForm(); Xrm.WebApi.updateRecord 将记录字段保存为不同的用户,然后用户调用 Api - Xrm.WebApi.updateRecord save a record fields as a different user then the user called the Api Xrm.Utility.openwebresource打开新选项卡 - Xrm.Utility.openwebresource opens new tab 在 JS-Dynamics 365 中使用“Xrm.WebApi.createRecord”创建实体记录 - Create an Entity Record using "Xrm.WebApi.createRecord" in JS- Dynamics 365 使用ActiveX调用XRM Javascript调用Web服务的替代方法 - Alternative to XRM Javascript calling webservice using ActiveX xrm工作台上未隐藏记录中的按钮,但无法单击 - Button on record is not hidden but can't be clicked, xrm workbench Dynamics CRM:在Eclipse中使用Xrm.Page库 - Dynamics CRM: using Xrm.Page library in Eclipse 在Dynamics 365 CRM上使用Xrm Object将表单设置为只读 - Set form read only using Xrm Object on Dynamics 365 CRM
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM