LookupTableCollection class

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 .NET JSOM REST Type Description
[Integer] LookupTable Gets a LookupTable from the collection at the specified index.
Item LookupTable Gets a LookupTable from the collection at the specified index.

Methods

Name .NET JSOM REST Return Type Description
'{LookupTableId}' LookupTable Gets a LookupTable from the collection with the specified LookupTableId.
Add(LookupTableCreationInformation parameters) LookupTable Adds the LookupTable that is specified by the LookupTableCreationInformation object to the collection.
GetByAppAlternateId(String objectId) LookupTable Get 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) LookupTable Gets a LookupTable from the collection with the Guid value.
GetById(String objectId) LookupTable Gets a LookupTable from the collection with the Id value.
Remove(LookupTable table) Boolean Removes the specified LookupTable from the collection.
Update() void Updates 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
Name Type Description
LookupTableId String the 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
Name Type Description
parameters LookupTableCreationInformation The 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
Name Type Description
objectId String The alternate custom field GUID.
Return Value

LookupTable

GetByGuid(Guid uid)

Gets a LookupTable from the collection with the Guid value.

Syntax
LookupTable GetByGuid(Guid uid)
Parameters
Name Type Description
uid Guid The Guid of the LookupTable
Return Value

LookupTable

GetById(String objectId)

Gets a LookupTable from the collection with the Id value.

Syntax
LookupTable GetById(String objectId)
Parameters
Name Type Description
objectId String The id of the LookupTable.
Return Value

LookupTable

Remove(LookupTable table)

Removes the specified LookupTable from the collection.

Syntax
Boolean Remove(LookupTable table)
Parameters
Name Type Description
table LookupTable The 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