Task Id URL Generation

  • 9 October 2009
  • 0 replies
  • 1 view

Badge +3

Hi Team,

I have used the following URL to generate the task LIst Item URL in email

[WPIProcessField.SiteURL]/_layouts/k2/WorkflowTask.aspx?SerialNumber=[ProcessId]_[ActivityInstanceDestId]&WorkflowInstanceId=[SPIntegration_Data.WorkflowId]&ListId=[SPIntegration_Data.ListId]&ItemId=[SPIntegration_Data.ItemUniqueId]&TaskListId=[SPIntegration_Data.TaskListId]

But my problem is when I am creating this URL and try to click it its giving error (Specific Error Text: Unknown Error)

What I can see in my virtual directory for this website under _Layouts/K2-----there is no  WorkflowTask.aspx available.

So
to check which page is getting called when we envoke the action I found
out it to be _layouts/K2BlackPearlPages/K2DefaultTaskPageSimple.aspx
and If I give the same query string to this page I am getting error as
Object reference is not set to an instance of the object.

Moreover this page requires is taking query as 

http://SERVER/_layouts/K2BlackPearlPages/K2DefaultTaskPageSimple.aspx?[ListID]=b72f5994-b395-4b7e-add6-769fa48789fb&[TaskID]=3&[Source]=http://amsdc1-s-7362:48655/_layouts/WrkStat.aspx?List=a1507a3a-6695-4022-acd8-d85bb3de4bdd&WorkflowInstanceID=ef710098-380a-46dd-9065-299e466a631d&ItemUniqueId=9&taskListId=b72f5994-b395-4b7e-add6-769fa48789fb 

and I am not having task Id before the sharepoint child event as I have to dent mail before the event.

Please give some solutions to resolve this even a workaround will be good.

 

Regards

Ankur

0 replies

Be the first to reply!

Reply