Hi All,
I'm try to update the statecode of the activitypointer entity through C# code but I'm having some issues doing so. I'm using the below code to do so,
UpdateStateValueRequest updateStateValue = new UpdateStateValueRequest
{
AttributeLogicalName = "statecode",
EntityLogicalName = "activitypointer",
Value = 1, //Completed
};
service.Execute(updateStateValue);
service is OrganizationServiceProxy and is already connected in a using statement further up in the code.
The code does not return any errors when this is executed which make me believe that is working. If I look in the UI or the database the statecode is still not updating. The only thing I can't understand about the above code snippet, there is not way that is linking to the specific activity.
Any ideas of what I have done wrong or any ways of completing this task would be greatly apprecaited.
Thanks.
*This post is locked for comments
I have the same question (0)