Saturday, June 21, 2008

Follow-up Task Assignment BUG


When you try to create a follow up task from an existing task and assign it to another user the assignment part is not working and you’re left “assigning” the task to your self.

Until MS releases a fix / rollup, here is a simple unsupported fix I created.

Basically MS send both current task ownerid and the new (follow-up) ownerid to the server. Removing the current ownerid node from the xml that is sent to the server does the trick.

Navigate to: [CRM Install Directory]
C:\Program Files\Microsoft Dynamics CRM\CRMWeb\_static\_controls\RelatedInformation\Category_FollowUp.htc

After line 163:


var activityXml = crmFollowUpFormSubmit.crmFormSubmitXml.value;

Insert the following js code:

var activityXmlDoc = loadXmlDocument(activityXml);
var badOwnerNode = activityXmlDoc.selectNodes("/task/ownerid").item(1);
activityXmlDoc.documentElement.removeChild(badOwnerNode);
activityXml = activityXmlDoc.xml;


Till next time,

1 comment:

asaf said...
This comment has been removed by the author.