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

PlanAssignment class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObject

Provides information about an assignment in a project plan.

Syntax

CSOM

class PlanAssignment 

JSOM

PS.PlanAssignment

REST Interface

Supported.

PS.PlanAssignment

http://contoso.sharepoint.com/sites/pwa/_api/ProjectServer/Projects('{projectid}')/GetResourcePlanByUrl(start='{yyyy-MM-dd}',end='{yyyy-MM-dd}',scale='{timescale}')/Assignments('{assignmentid}')

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
[]✓ʷDictionary<string, Object>Gets or sets an item in the plan assignment.
BookingType✓ʷ✓ʷ✓ʷBookingTypeGets or sets the booking type for a plan assignment.
CanLevelBooleanGets a value that indicates whether resource leveling can be performed on a plan assignment resource.
CodeStringGets any code, abbreviation, or number that is entered as custom information for a plan assignment.
CostCenterStringGets any code, abbreviation, or number that is entered as custom cost center information for a plan assignment.
CustomFieldsCustomFieldCollectionGets the collection of custom fields that have values set for a plan assignment.
EmailStringGets the email address of the resource for a plan assignment.
FieldValuesDictionary<string, Object>Gets the collection of custom fields that have values set for the plan assignment.
GroupStringGets the name of a group to which a plan assignment resource belongs.
HireDateDateTimeGets the date and time that a plan assignment resource was hired.
IdGuidGets the GUID of a plan assignment.
IntervalsPlanAssignmentIntervalCollectionGets the collection of plan assignment time intervals.
IsTeamBooleanGets a value that indicates whether a plan assignment resource is in a team assignment pool.
Item✓ʷDictionary<string, Object>Gets or sets an item in the plan assignment.
NameStringGets the full name of a plan assignment resource.
PhoneticsStringGets phonetic information for resource names, in either the Japanese Hiragana writing system or the Katakana writing system.
ResourceEnterpriseResourceGets a resource that is part of an organization's entire list of resources and that can be shared across projects.
ResourceTypeEnterpriseResourceTypeGets the type of a plan assignment resource.
TerminationDateDateTimeGets the date and time after which a plan assignment resource can no longer be used.

Methods

Name.NETJSOMRESTReturn TypeDescription
DeleteObject()voidDeletes the plan assignment object.
SetCustomFieldValue(String fieldName, Object value)voidSets a custom field on the plan assignment.


Method Details

DeleteObject()

Deletes the plan assignment object.

Syntax
void DeleteObject()
Parameters

None

Return Value

void

SetCustomFieldValue(String fieldName, Object value)

Sets a custom field on the plan assignment.

Syntax
void SetCustomFieldValue(String fieldName, Object value)
Parameters
NameTypeDescription
fieldNameStringThe InternalName of the custom field to update.
valueObjectNew value of the custom field.
Return Value

void

See Also

PlanAssignmentCollection
PlanAssignmentCreationInformation

© 2018 Microsoft