Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

delegate sharepoint task programatically

$
0
0

Hi, 

I have a SharePoint Workflow task created and I added task delegation like this.

SPListItem listItem
                = currentWeb.Lists.TryGetList(taskListName).GetItemById(taskId);
            listItem["AssignedTo"] = delegateTouser;
            listItem.Update();

once the delegated user approve or reject the task, it gives following error. 

"Error in request approval action. Unauthorized attempt to update approval task by WIN-4IVE6RU7V84\testuser1. The response has not been recorded."

How to fix this?


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>