Tech Support > Microsoft Windows > Windows CRM > How to get task ID when in workflow rule and pass to assembly? CRM 3.0
How to get task ID when in workflow rule and pass to assembly? CRM 3.0
Posted by Chaser on December 7th, 2005


Hi,

I need to create a workflow that calls an assembly dll when a task is
assigned to somebody. I need to take in a unique identifier as a
parameter (activityid for the task), but whenever I go to assign the
parameter to a dynamic field, the task entity shows up but no fields
are available. I need some way to identify this task. When I change
the datatype to string it shows me a bunch of fields but none of them
are unique.

Here is my workflow.config section:
<method name="TaskAssigner"
assembly="CHC_Workflow.dll"
typename="CHC_Workflow.BuildIn"
methodname="AssignTask"
group="Special">
<parameter name="activityid" datatype="lookup"
entityname="task"/>
</method>

and my assembly code:

using System;
using KORE;
using Microsoft.Crm.Platform.Workflow;

namespace CHC_Workflow
{

public class BuildIn
{
KORE.CommonCRM korecrm = new KORE.CommonCRM();

public BuildIn()
{

}

public void AssignTask( System.Guid entityid )
{
korecrm.CustomLog( entityid.ToString() );
TaskAssigner ta = new TaskAssigner();
ta.ProcessTaskAssignment( entityid );
}
}
}


I need help! Any suggestions?


Thanks,
Chase


Similar Posts