Hello all,
I'm having troubles while creating new task activity and marking it as completed.
I'm creating tasks easily but I want to set them to Complete while creating them.
So I send this object.
var testtt = new test
{
description = "test task description",
subject = "test Hima 14",
scheduledstart = new DateTime(2020, 4, 1, 12, 0, 0),
scheduledend = new DateTime(2020, 4, 1, 15, 0, 0),
regardingobjectid_lead = "/leads(6329dbd0-4e1c-e511-80d3-3863bb347ba8)",
statuscode = 2,
statecode = 1
};
I just don't know what is wrong, I googled a lot for statecode and statuscode values and I think I set them correctly.
I referenced this thread but with no luck at all https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/253880/change-the-state-and-status-reason-through-web-api
Thanks in advance