简体   繁体   English

在 Dynamics CRM 中,如何创建一个由 6 个字符随机生成的唯一 GUID 的字段?

[英]In Dynamics CRM, how can I create a field that is a 6-character randomly generated unique GUID?

How can I create a custom field that is a 6-digit (or 6 character) randomly generated unique GUID in CRM?如何在 CRM 中创建一个 6 位(或 6 个字符)随机生成的唯一 GUID 的自定义字段?

Thanks!谢谢!

You can use the autonumber feature您可以使用自动编号功能

https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/create-auto-number-attributes https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/create-auto-number-attributes

From the link从链接

When you add the auto-number attribute as a field to a form, the auto-number attribute field behaves as read-only in the form, and end-users cannot edit the field.当您将自动编号属性作为字段添加到表单时,自动编号属性字段在表单中表现为只读,最终用户无法编辑该字段。 The value is set only after you save the entity.该值仅在您保存实体后设置。 You can see auto-number attribute as any other field value in views, grids and so on您可以将自动编号属性视为视图、网格等中的任何其他字段值

You'll need to use the XrmToolbox to configure the autonumber.您需要使用 XrmToolbox 来配置自动编号。 You can create a 6-character random string with {RANDSTRING:6}您可以使用{RANDSTRING:6}创建一个 6 字符的随机字符串

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

相关问题 如何在Microsoft dynamics crm 365中通过javascript获取查找字段的值 - How can I get the value of a lookup field by javascript in Microsoft dynamics crm 365 如何在主题字段中隐藏主题,就像在 MS Dynamics CRM 2015 中隐藏选项集字段中的项目一样? - How can I hide a subject in subject field, just like hiding an item from optionset field in MS Dynamics CRM 2015? 如何将自定义UI添加到Dynamics CRM客户端 - how can I add custom UI to dynamics CRM client 在 Dynamics CRM 中,如何更新 CreatedOn 日期? - In Dynamics CRM, How can I update the CreatedOn date? 是否可以在Dynamics CRM 2016的复合地址字段中添加两个选项字段? - Can I add two options field in composite address field in Dynamics CRM 2016? 我可以创建一个属性值是随机生成的数字的对象吗? - Can i create an object where the value of the property is a randomly generated number? 如何在Dynamics CRM 2013中设置复合材料领域的重点? - How to set focus for a composite field in dynamics crm 2013? 如何使文本字段适合Dynamics CRM 2011 - How to make a text field fit in Dynamics CRM 2011 如何使用JavaScript清除MS Dynamics CRM 4.0中的“查找”字段 - How to clear Lookup field in MS Dynamics CRM 4.0 using JavaScript 我们如何在Dynamics CRM中为单个字段允许多个选择? - How do we allow multiple selections for a single field in Dynamics CRM?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM