Independentsoft
Home
Purchase
Support
Company
Contact
JGraph
>
Tutorial
> Get Planner Buckets
The following example shows you how to retrieve all buckets in a planner plan.
import com.independentsoft.graph.GraphClient; import com.independentsoft.graph.GraphException; import com.independentsoft.graph.planner.PlannerBucket; public class Console { 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"); String planId = "AAMkAGVm..."; java.util.List
buckets = client.getPlannerBuckets(planId); for (PlannerBucket bucket : buckets) { System.out.println("Id: " + bucket.getId()); System.out.println("Name: " + bucket.getName()); System.out.println("PlanId: " + bucket.getPlanId()); System.out.println("OrderHint: " + bucket.getOrderHint()); System.out.println("-------------------------------------------"); } } catch (GraphException e) { System.out.println(e.getCode()); System.out.println(e.getMessage()); e.printStackTrace(); } } }
Need help? Ask our developers:
Name*
Email*
Message*