如何更改选项集字段以使用另一个(现有)选项集?
联系人实体上的一个字段具有“选项集”类型。现在我希望更改字段以使用现有选项集,但无需重新创建字段。 该选项当前已禁用。
One field on Contact entity has 'option set' type. Now I want change field to use existing option set, but without re-creating field.
This option is currently disabled.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是不可能完成的 - 一旦您将字段设置为使用它自己的选项集,您就无法将其更改为使用共享选项,就像您无法更改字段类型或架构一样提交到数据库后的名称。
如果您已准备好共享选项集,则删除该字段并使用共享选项集重新创建它应该不是什么大问题。不过,您很可能会丢失之前在此字段中的数据。
如果这是一个问题,请考虑在进行更改之前导出数据,然后将其重新导入,尽管我不确定这将如何工作的确切细节。
I don't think this can be done - once you've set a field up to use it's own option set, you can't change it to use a shared one instead, just as you can't change the field type or schema name after it's committed to the database.
If you've got a shared option set ready, it shouldn't be too big a deal to delete the field and re-create it with the shared option set. You would most likely lose the data which was in this field previously, though.
If this is an issue, consider exporting the data before making the change and then importing it back in, though I'm not sure of the exact details of how this would work.