Independentsoft
Home
Purchase
Support
Company
Contact
JGraph
>
Tutorial
> Get Planner plan
The following example shows you how to get a Planner plan by its ID.
import com.independentsoft.graph.GraphClient; import com.independentsoft.graph.GraphException; import com.independentsoft.graph.planner.PlannerPlan; public class Sample { public static void main(String[] args) { try { GraphClient client = new GraphClient(); client.setClientId("63333333-209e-454e-b7bd-55a4d201270f"); client.setTenant("independentsoft.onmicrosoft.com"); client.setUsername("info@independentsoft.onmicrosoft.com"); client.setPassword("password"); PlannerPlan plan = client.getPlannerPlan("xqQg5FS2LkCp935s-FIFm2QAFkHM"); System.out.println("Id = " + plan.getId()); System.out.println("Title = " + plan.getTitle()); System.out.println("Owner = " + plan.getOwner()); System.out.println("CreatedDateTime = " + plan.getCreatedDateTime()); } catch (GraphException e) { System.out.println("Error: " + e.getCode()); System.out.println("Message: " + e.getMessage()); e.printStackTrace(); } } }
Need help? Ask our developers:
Name*
Email*
Message*