在 Dynamics CRM 中,如何创建一个由 6 个字符随机生成的唯一 GUID 字段?
In Dynamics CRM, how can I create a field that is a 6-character randomly generated unique GUID?
如何在 CRM 中创建一个 6 位数字(或 6 个字符)随机生成的唯一 GUID 的自定义字段?
谢谢!
您可以使用自动编号功能
来自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
您需要使用 XrmToolbox 来配置自动编号。您可以使用 {RANDSTRING:6}
创建一个 6 个字符的随机字符串
唯一性更新
The random strings help you to avoid duplicates or collisions,
especially when offline clients trying to create auto-numbers
和
The sequential segment is generated by SQL and hence uniqueness is
guaranteed by SQL.
如何在 CRM 中创建一个 6 位数字(或 6 个字符)随机生成的唯一 GUID 的自定义字段?
谢谢!
您可以使用自动编号功能
来自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
您需要使用 XrmToolbox 来配置自动编号。您可以使用 {RANDSTRING:6}
唯一性更新
The random strings help you to avoid duplicates or collisions, especially when offline clients trying to create auto-numbers
和
The sequential segment is generated by SQL and hence uniqueness is guaranteed by SQL.