Checklist Task added with API

Discussions related to custom development with Select.
Post Reply
muhsmann
Posts: 54
Joined: Thu Jan 15, 2009 5:41 pm

Checklist Task added with API

Post by muhsmann »

I'm creating a Checklist task via the API, but the task does not appear on the 'Task Tab' in the application. What do I need to do to accomplish this?

Thanks,
Landon
Melissa McBerkowitz
Posts: 91
Joined: Wed Sep 10, 2008 3:33 pm
Location: Raleigh, NC
Contact:

Re: Checklist Task added with API

Post by Melissa McBerkowitz »

Do you mean that you're not seeing your checklist task on the Checklist Tasks tab inside the order tab, or that you're not seeing it in the My Orders queue's "Task View"?
Melissa McBerkowitz
VP of Product Strategy, SoftPro
roteague
Posts: 292
Joined: Thu Sep 25, 2008 4:49 pm
Location: Honolulu, Hawaii

Re: Checklist Task added with API

Post by roteague »

muhsmann wrote:I'm creating a Checklist task via the API, but the task does not appear on the 'Task Tab' in the application. What do I need to do to accomplish this?

Thanks,
Landon
How are you adding them? I haven't had any problems adding Checklist tasks.
Robert
muhsmann
Posts: 54
Joined: Thu Jan 15, 2009 5:41 pm

Re: Checklist Task added with API

Post by muhsmann »

Code: Select all

                order.ChecklistTask.CreateNew();
            ITrustee _orderValidationUser = order.AllUsers.FirstOrDefault(t => t.UserName == SP_ORDER_VALIDATION_USER);
            order.ChecklistTask[0].AssignedTo = _orderValidationUser;
            order.ChecklistTask[0].Task = SP_ORDER_VALIDATION_TASK;
            order.ChecklistTask[0].Status = SP_TASK_STATUS;
Where the constants are defined as:

Code: Select all

        private const string SP_ORDER_VALIDATION_USER = @"Order_Validation";
        private const string SP_ORDER_VALIDATION_TASK = "Order Validation";
        private const string SP_TASK_STATUS = "Required";
We have built a 'special' SP user Order_Validation to create these orders that originate in an outside system.
roteague
Posts: 292
Joined: Thu Sep 25, 2008 4:49 pm
Location: Honolulu, Hawaii

Re: Checklist Task added with API

Post by roteague »

That's pretty close to what I'm doing. Are you saving the order before you go onto the next one? (I assume you are, but just covering bases).
Robert
Post Reply