I'm trying to toggle todo items in IBM Connections to complete/incomplete using the SBT Java API. I manage to set the todo item to complete, but how do I change it back to incomplete?
todoNode = activityService.getActivityNode( "856b9450-b3d2-4b41-a198-46feeb3772a8" );
System.out.println("Title " + todoNode.getTitle());
if ( todoNode.getCategoryFlagCompleted() == null) {
List<String> flags = new java.util.ArrayList();
flags.add("Completed");
todoNode.setFlags(flags);
}
activityService.updateActivityNode(todoNode);
Many thanks