我在Dynamics 365中面临问题。
假设我有2个队列-Queue1和Queue2,并且在两个队列上都启用了案例创建规则。最初,客户向Queue1发送了一封电子邮件,并将其转换为案例,我想将此电子邮件转发至Queue2。
[当我将电子邮件从Queue1转发到Queue2时,它作为“传入”电子邮件通过Queue2返回到Dynamics,但又再次链接到Queue1中存在的相同旧情况。我想要,它应该在Queue2中创建一个新案例。
如果发送者是Dynamics队列,我也尝试了一个预创建插件来清除传入电子邮件中的About对象,并且根据跟踪,代码也清除了关于obectid的代码。但是,它仍会以某种方式链接到同一票证。
是否有人遇到相同的问题并得到了解决方法。
插入代码段-已在电子邮件预创建同步中注册。
TargetEntity = (Entity)PluginContext.InputParameters["Target"];
var sender = TargetEntity["sender"].ToString().ToLowerInvariant();
EntityCollection senderQueue = GetQueue(sender);
if (senderQueue?.Entities != null && senderQueue.Entities.Count != 0)
{
TracingService.Trace("sender is a queue");
TracingService.Trace("updating : TargetEntity['regardingobjectid'] = null to platform");
TargetEntity["regardingobjectid"] = null;
}```
我在清除传入电子邮件的目标实体中的3个属性之后终于能够做到这一点。
我已在清除以下3个字段的电子邮件上编写了一个预验证同步插件:-
TargetEntity["regardingobjectid"] = null;
// this line -- parentactivityid fixed the issue.
TargetEntity["parentactivityid"] = null;
TargetEntity["trackingtoken"] = null;