LookupEntryCollection class

inherits members from ClientObjectCollection

Represents a collection of LookupEntry objects for a lookup table.

Syntax

CSOM

class LookupEntryCollection 

JSOM

PS.LookupEntryCollection

REST Interface

Supported.

PS.LookupEntryCollection

http://contoso.sharepoint.com/sites/pwa/api/ProjectServer/LookupTables('{tableid}')/Entries

Members

✓ - Read Support       ✓ʷ - Write Support

Properties

Name .NET JSOM REST Type Description
[Integer] LookupEntry Gets a LookupEntry from the collection at the specified index.
Item LookupEntry Gets a LookupEntry from the collection at the specified index.

Methods

Name .NET JSOM REST Return Type Description
'{LookupEntryId}' LookupEntry Gets a LookupEntry from the collection with the specified LookupEntryId.
Add(LookupEntryCreationInformation parameters) LookupEntry Adds the LookupEntry that is specified by the LookupEntryCreationInformation object to the collection.
GetByAppAlternateId(String objectId) LookupEntry Gets a lookup entry from the collection by using the alternate lookup entry GUID that is specified in an App package for Project Server online.
GetByGuid(Guid uid) LookupEntry Gets a LookupEntry from the collection with the Guid value.
GetById(String objectId) LookupEntry Gets a LookupEntry from the collection with the Id value.
Remove(LookupEntry entry) Boolean Removes the specified LookupEntry from the collection.

#### Method Details

'{LookupEntryId}'

Gets a LookupEntry from the collection with the specified LookupEntryId.

Syntax
LookupEntry http://contoso.sharepoint.com/sites/pwa/api/ProjectServer/LookupTables('{tableid}')/Entries('{LookupEntryId}')
Parameters
Name Type Description
LookupEntryId String the id of the LookupEntry
Return Value

LookupEntry

Add(LookupEntryCreationInformation parameters)

Adds the LookupEntry that is specified by the LookupEntryCreationInformation object to the collection.

Syntax
LookupEntry Add(LookupEntryCreationInformation parameters)
Parameters
Name Type Description
parameters LookupEntryCreationInformation The properties that can be set when creating a lookup entry.
Return Value

LookupEntry

GetByAppAlternateId(String objectId)

Gets a lookup entry from the collection by using the alternate lookup entry GUID that is specified in an App package for Project Server online.

Syntax
LookupEntry GetByAppAlternateId(String objectId)
Parameters
Name Type Description
objectId String A string object identifier.
Return Value

LookupEntry

GetByGuid(Guid uid)

Gets a LookupEntry from the collection with the Guid value.

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

LookupEntry

GetById(String objectId)

Gets a LookupEntry from the collection with the Id value.

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

LookupEntry

Remove(LookupEntry entry)

Removes the specified LookupEntry from the collection.

Syntax
Boolean Remove(LookupEntry entry)
Parameters
Name Type Description
entry LookupEntry The LookupEntry to remove.
Return Value

Boolean

See Also

CustomField
LookupEntry
LookupEntryCreationInformation
LookupTable
WorkflowDesignerField