[英]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.