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

LookupTableCollection class

Nadin Merali|Last Updated: 5/6/2017

inherits members from ClientObjectCollection

Represents a collection of LookupTable objects.

Syntax

CSOM

class LookupTableCollection 

JSOM

PS.LookupTableCollection

REST Interface

Supported.

PS.LookupTableCollection

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

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name.NETJSOMRESTTypeDescription
[Integer]LookupTableGets a LookupTable from the collection at the specified index.
ItemLookupTableGets a LookupTable from the collection at the specified index.

Methods

Name.NETJSOMRESTReturn TypeDescription
'{LookupTableId}'LookupTableGets a LookupTable from the collection with the specified LookupTableId.
Add(LookupTableCreationInformation parameters)LookupTableAdds the LookupTable that is specified by the LookupTableCreationInformation object to the collection.
GetByAppAlternateId(String objectId)LookupTableGet an element from the lookup table collection by using the alternate object GUID that is specified in an App package for Project Online.
GetByGuid(Guid uid)LookupTableGets a LookupTable from the collection with the Id value.
GetById(String objectId)LookupTableGets a LookupTable from the collection with the Guid value.
Remove(LookupTable table)BooleanRemoves the specified LookupTable from the collection.
Update()voidUpdates the lookup table collection.


Method Details

'{LookupTableId}'

Gets a LookupTable from the collection with the specified LookupTableId.

Syntax
LookupTable http://contoso.sharepoint.com/sites/pwa/api/ProjectServer/LookupTables('{LookupTableId}')
Parameters
NameTypeDescription
LookupTableIdStringthe id of the LookupTable
Return Value

LookupTable

Add(LookupTableCreationInformation parameters)

Adds the LookupTable that is specified by the LookupTableCreationInformation object to the collection.

Syntax
LookupTable Add(LookupTableCreationInformation parameters)
Parameters
NameTypeDescription
parametersLookupTableCreationInformationThe properties that can be set when creating a lookup table.
Return Value

LookupTable

GetByAppAlternateId(String objectId)

Get an element from the lookup table collection by using the alternate object GUID that is specified in an App package for Project Online.

Syntax
LookupTable GetByAppAlternateId(String objectId)
Parameters
NameTypeDescription
objectIdStringThe alternate custom field GUID.
Return Value

LookupTable

GetByGuid(Guid uid)

Gets a LookupTable from the collection with the Id value.

Syntax
LookupTable GetByGuid(Guid uid)
Parameters
NameTypeDescription
uidGuidThe Guid of the LookupTable
Return Value

LookupTable

GetById(String objectId)

Gets a LookupTable from the collection with the Guid value.

Syntax
LookupTable GetById(String objectId)
Parameters
NameTypeDescription
objectIdStringThe id of the LookupTable.
Return Value

LookupTable

Remove(LookupTable table)

Removes the specified LookupTable from the collection.

Syntax
Boolean Remove(LookupTable table)
Parameters
NameTypeDescription
tableLookupTableThe LookupTable to remove.
Return Value

Boolean

Update()

Updates the lookup table collection.

Syntax
void Update()
Parameters

None

Return Value

void

See Also

LookupTable
LookupTableCreationInformation
ProjectContext

© 2018 Microsoft