Aspose.Email for C++ 24.7 is a major release that introduces support for Microsoft Graph Task Management. This version enables developers to access, manage, and interact with tasks and task lists through new APIs, improving the functionality of their email applications.
Microsoft Graph Task Management Support
You can now access and manage users’ tasks and task lists efficiently using new methods added to the IGraphClient interface in the latest C++ email management API release.
New API Methods
We have added methods like ListTaskLists(), GetTaskList(), DeleteTaskList(), ListTasks(), FetchTask(), CreateTask(), and UpdateTask() in this C++ API version to streamline task management operations.
New Features Support for Task Management in Microsoft Graph
C++ developers can now retrieve, create, update, and delete tasks and task lists using dedicated APIs. This feature brings seamless integration with Microsoft Graph and empowers task-related functionalities within your C++ applications.
Code Examples:
Learn how to retrieve and delete task lists using the new methods in this code example.
// List Task Lists
auto taskLists = graphClient->ListTaskLists();
for (auto&& tList : System::IterateOver(taskLists))
{
Console::WriteLine(String::Format(u"Task List: {0}", tList->get_DisplayName()));
}
// Get Task List
auto taskList = graphClient->GetTaskList(u"taskListId");
// Delete Task List
graphClient->DeleteTaskList(u"taskListId");
Source*
This code sample demonstrates creating, updating, and fetching tasks in your C++ applications.
// List Tasks in a Task List
SharedPtr<MapiTaskCollection> tasks = graphClient->ListTasks(u"taskListId");
// Fetch Task
SharedPtr<MapiTask> task = graphClient->FetchTask(u"taskId");
// Create Task
auto newTask = CreateObject<MapiTask>();
newTask->set_Subject(u"New Task");
newTask->set_DueDate(CreateObject<DateTime>(2023, 12, 31));
newTask->set_Status(MapiTaskStatus::NotStarted);
SharedPtr<MapiTask> createdTask = graphClient->CreateTask(newTask, "taskListUri");
// Update Task
createdTask->set_Subject(u"Updated Task Subject");
SharedPtr<MapiTask> updatedTask = graphClient->UpdateTask(createdTask);
// Update Task with UpdateSettings
auto updateSettings = CreateObject<UpdateSettings>();
updateSettings->set_SkipAttachments(true);
SharedPtr<MapiTask> updatedTaskWithSettings = graphClient->UpdateTask(createdTask, updateSettings);
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Email for C++ 24.7 Release Notes.