Table of contents
API
TOC
Collapse the table of content
Expand the table of content

ProjectContext class

Nadin Merali|Last Updated: 5/6/2017

Maintains the client-side context for development with a Project Web App instance, and contains the enterprise-wide collections of Project Server objects that exist in Project Web App.

Syntax

CSOM

class ProjectContext 

JSOM

PS.ProjectContext

REST Interface

Supported.

PS.ProjectContext

http://contoso.sharepoint.com/sites/pwa/api/ProjectServer

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
CalendarsCalendarCollectionGets the collection of calendars for the Project Server instance.
CustomFieldsCustomFieldCollectionGets the collection of enterprise custom field definitions in the Project Web App instance.
EngagementsTimephasedPageSizeIntegerThe number of Engagements objects that can be returned in a single request.
EnterpriseProjectTypesEnterpriseProjectTypeCollectionGets the collection of enterprise project types (EPTs) in the Project Web App instance.
EnterpriseResourcesEnterpriseResourceCollectionGets the collection of enterprise resources in a Project Web App instance.
EnterpriseResourcesPageSizeIntegerThe number of EnterpriseResource that can be pulled down with child elements in a single request
EntityTypesEntityTypesGets the types of Project Server entities that are exposed through the CSOM.
EventHandlersEventHandlerCollectionGets the collection of event handlers that are defined in a Project Web App instance.
EventsEventCollectionGets the collection of event objects in a Project Web App instance.
IsDelegateBooleanGets a value that indicates whether the current user has started a delegation session in PWA. For CSOM/JSOM support see ServiceStatus
IsReadOnlyBooleanGets a value that indicates whether the Project Server database is in read-only mode. For CSOM/JSOM support see ServiceStatus
LookupTablesLookupTableCollectionGets the collection of lookup table definitions in the Project Web App instance.
PhasesPhaseCollectionGets the collection of Project Server workflow phases in the Project Web App instance.
ProjectDetailPagesProjectDetailPageCollectionGets a collection of project detail pages in the Project Server instance.
ProjectsProjectCollectionGets the collection of projects in the Project Web App instance.
ProjectsPageSizeIntegerThe number of PublishedProject objects that can be in a single request when also requesting child entities.
ServiceStatusServiceStatusGets information about the status of the Project Server service.
StagesStageCollectionGets the collection of Project Server workflow stages in a Project Web App instance.
TimeSheetPeriodsTimeSheetPeriodCollectionGets a collection of time sheet periods.
WorkflowActivitiesWorkflowActivitiesGets the methods that Project Server workflows can call at run time.
WorkflowDesignerWorkflowDesignerGets a workflow designer that developers can call at design time.

Methods

Name.NETJSOMRESTReturn TypeDescription
GetDeletedPublishedAssignments(DateTime deletedDate)DeletedPublishedAssignmentCollectionGet all Published assignments deleted since the specified date.
StopDelegation()voidStops the current delegation session.


Method Details

GetDeletedPublishedAssignments(DateTime deletedDate)

Get all Published assignments deleted since the specified date.

Syntax
DeletedPublishedAssignmentCollection GetDeletedPublishedAssignments(DateTime deletedDate)
Parameters
NameTypeDescription
deletedDateDateTimeThe earliest date to retrieve deleted published assignments from.
Return Value

DeletedPublishedAssignmentCollection

StopDelegation()

Stops the current delegation session.

Syntax
void StopDelegation()
Parameters

None

Return Value

void

See Also

CalendarCollection
CustomFieldCollection
EnterpriseProjectTypeCollection
EnterpriseResourceCollection
EntityTypes
EventHandlerCollection
EventCollection
LookupTableCollection
PhaseCollection
ProjectDetailPageCollection
ProjectCollection
StageCollection
TimeSheetPeriodCollection
WorkflowActivities

© 2018 Microsoft