Dynamics crm Can';不要删除邮箱

Dynamics crm Can';不要删除邮箱,dynamics-crm,dynamics-crm-2015,Dynamics Crm,Dynamics Crm 2015,我想删除一个邮箱。然而,我得到的错误消息如下 无法删除与用户或队列关联的邮箱 //First Check Your Primary User Table to See The Records You Want To Delete and Backup from that select s.DefaultMailbox from SystemUserBase s //Like Past Step See This Records And Back it up select s.DefaultM

我想删除一个邮箱。然而,我得到的错误消息如下

无法删除与用户或队列关联的邮箱

//First Check Your Primary User Table to See The Records You Want To Delete and Backup from that

select s.DefaultMailbox
from SystemUserBase s

//Like Past Step See This Records And Back it up
select s.DefaultMailbox
from SystemUserBase s

//This Is Primary View For CRM User Like Other Step BackUp Records
select sv.DefaultMailbox, sv.DefaultMailboxName
from SystemUser sv

//And This Is Last Table You Want For This Action This Is queue Table
select q.DefaultMailbox
from QueueBase q

//Then Update This Columns In Tables
update QueueBase
set DefaultMailbox = null

update SystemUser
set DefaultMailbox = null , DefaultMailboxName = null

update SystemUserBase
set DefaultMailbox = null
但是,我看不到可能锁定它的用户/队列。我能想到的唯一一件事是关于查找,但它已被禁用,无法设置为其他任何内容

我们有一个新的团队成员,我告诉他们要发疯,但他们制造的那些发疯很奇怪,因为我看不出如何补救(如果问题与关注有关…)

我已经尝试过激活/停用、重新发送测试邮件、添加/删除服务器配置文件等。更多或更少,任何我可以。。。我发现唯一有价值的(这是夸张的)是


这个问题的最佳答案是邮箱依赖于队列和用户记录,但您不能删除它们。 但是有另一种方法可以执行此操作,但Microsoft不建议执行此操作。解决方案是您可以使用SQL查询,实际上您可以更新用户和队列并清除邮箱字段,然后可以删除邮箱记录

//First Check Your Primary User Table to See The Records You Want To Delete and Backup from that

select s.DefaultMailbox
from SystemUserBase s

//Like Past Step See This Records And Back it up
select s.DefaultMailbox
from SystemUserBase s

//This Is Primary View For CRM User Like Other Step BackUp Records
select sv.DefaultMailbox, sv.DefaultMailboxName
from SystemUser sv

//And This Is Last Table You Want For This Action This Is queue Table
select q.DefaultMailbox
from QueueBase q

//Then Update This Columns In Tables
update QueueBase
set DefaultMailbox = null

update SystemUser
set DefaultMailbox = null , DefaultMailboxName = null

update SystemUserBase
set DefaultMailbox = null
完成此查询后,现在可以删除邮箱
希望我能帮助您

您是否尝试过在CRM数据库中查找?这不是解决办法,但可能会把你引向正确的方向。康拉德,同样的问题。无法发送电子邮件,因为非活动邮箱与用户关联。无法与用户解除关联,因为字段处于非活动状态。无法删除邮箱,因为与用户关联。无法启用邮箱,不知道原因(可能是因为还有一个活动邮箱关联)。如果我找到答案,我会发布答案。我们最终删除了服务器配置文件和所有其他与邮件相关的设置,如路由器等。然后,我们就有可能摆脱我们不想保留的东西。如果你找到一个更平滑的解决方案,欢迎你在这里发布。@Kye直到现在我才记得看到过你的评论。只有在内部部署的情况下才能检查数据库,我希望看到一个在线解决方案。