I want to copy a list item from one list to an other along with the file attachments which are associated with it.
I am doing this in a custom workflow. I am trying to make a object of a class which is coming from Listdata.svc
and the class is of TasksItem.
TasksItem newtask = new TasksItem()
{
Title = workflowProperties.Item.Title,
};
Above is the code which is working fine when copy only simple field like Title of the task etc but I want to know how can we add attachments into it. So the attachments will also get copied to the destination list.
Thanks.