自定义字段上实体的 GUID

发布于 2024-07-22 21:26:28 字数 75 浏览 2 评论 0原文

我想在服务活动中创建自定义文本字段。 当服务活动加载时,我希望在该文本字段中包含服务活动 GUID。 有谁知道我该如何解决这个问题?

I want to create a custom textfield in a serviceactivity. When the serviceactivity onloads I would like to have the serviceactivities GUID in that textfield. Does anyone have any idea how I can solve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沧笙踏歌 2024-07-29 21:26:28

当然。

  1. 在实体上创建一个新属性 (myguid) 以保存 GUID。
  2. 进入该实体的主表单自定义。
  3. 将新的 myguid 字段添加到您的表单中。
  4. 在表单属性上,更改 onLoad 事件。
  5. 使用 crmForm.ObjectId 获取 GUID 值。

例子:
crmForm.all.myguid.DataValue = crmForm.ObjectId;

您可能想查看 CRM 4.0 SDK

Sure.

  1. Create a new attribute (myguid) on the entity to hold the GUID.
  2. Go into the main form customization for that entity.
  3. Add the new myguid field to your form.
  4. On the form properties, alter the onLoad event.
  5. Use crmForm.ObjectId to get the GUID value.

Example:
crmForm.all.myguid.DataValue = crmForm.ObjectId;

You might wanna check out the CRM 4.0 SDK.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文