REST API to change Quote Task?

I’m curious if anyone has used the REST API to update a task on a quote. The task system is pretty complex, so any tips would be appreciated, thanks

I have, the trick is to use the Tasks service and not the Quote Service to do so

1 Like

Do you remember which method(s)?

No Methods? It’s just OData you ahve your GET (GET) / PATCH (UPDATE) / POST(CREATE) etc

public static Task GetTask(string company,string key1, string key2, string key3, string RelatedTo, int seqNum)
        {
            string patchKey = $"Tasks('{company}','{RelatedTo}','{key1}','{key2}','{key3}',{seqNum})";
            return Newtonsoft.Json.JsonConvert.DeserializeObject<Task>(GetJSON("Erp.BO.TaskSvc", patchKey,null));
        }

public static Task UpdateTask(Task t)
        {
            
            string patchKey = $"Tasks('{t.Company}','{t.RelatedToFile}','{t.Key1}','{t.Key2}','{t.Key3}',{t.TaskSeqNum})";
            PatchJSON("Erp.BO.TaskSvc", patchKey, t);
            return t;
        }
1 Like

Nice, I was looking at the custom methods for this, not the OData list. Thank you!

1 Like