Independentsoft
Professional software libraries for developers
Home
Purchase
Support
Company
Contact
Graph C++
>
Tutorial
> Update Planner plan details
The following example shows you how to update the details of a Planner plan.
C++ example
#include
#include "independentsoft/graph/graph_client.hpp" #include "independentsoft/graph/graph_exception.hpp" #include "independentsoft/graph/planner/planner_plan_details.hpp" #include "independentsoft/graph/planner/planner_category_descriptions.hpp" using namespace independentsoft::graph; using namespace independentsoft::graph::planner; int main() { try { GraphClient client; client.client_id = "63333333-209e-454e-b7bd-55a4d201270f"; client.tenant = "independentsoft.onmicrosoft.com"; client.client_secret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; PlannerCategoryDescriptions categoryDescriptions; categoryDescriptions.category1 = "High Priority"; categoryDescriptions.category2 = "In Progress"; PlannerPlanDetails details; details.category_descriptions = categoryDescriptions; sync_wait(client.update_planner_plan_details("xqQg5FS2LkCp935s-FIFm2QAFkHM", details)); std::cout << "Planner plan details updated." << std::endl; } catch (const GraphException& ex) { std::cout << "Error: " << ex.code << std::endl; std::cout << "Message: " << ex.message << std::endl; } return 0; }
Need help? Ask our developers:
Name*
Email*
Message*