1

这是我要解决的问题:

当创建新的任务/事件时,如果用户是某个配置文件 - 我们希望将CONTACT上的字段更新为创建 T/E 的日期。

我尝试进行工作流规则和字段更新-但无法使其正常工作...我认为由于这是通过查找的标准-标准对象关系,因此在进行字段更新时可能会出现问题。还有其他想法吗??我更喜欢使用这个平台...

停!

谢谢

4

1 回答 1

3

我们已经通过 Apex 触发器完成了您所说的操作。像这样的东西...

//I'm sure this doesn't compile, but it gives you the idea
trigger taskTrigger on Task( after insert, after update ){
   Task t = trigger.new ;
   Contact contact = [Select Id from Contact where Id = :t.whoId] ;
   contact.yourfield = t.AcitivityDate ;
   update contact ;
}
于 2012-09-21T20:45:00.397 回答