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

LookupEntryCollection class

Nadin Merali|Last Updated: 5/6/2017

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.NETJSOMRESTTypeDescription
[Integer]LookupEntryGets a LookupEntry from the collection at the specified index.
ItemLookupEntryGets a LookupEntry from the collection at the specified index.

Methods

Name.NETJSOMRESTReturn TypeDescription
'{LookupEntryId}'LookupEntryGets a LookupEntry from the collection with the specified LookupEntryId.
Add(LookupEntryCreationInformation parameters)LookupEntryAdds the LookupEntry that is specified by the LookupEntryCreationInformation object to the collection.
GetByAppAlternateId(String objectId)LookupEntryGets 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)LookupEntryGets a LookupEntry from the collection with the Id value.
GetById(String objectId)LookupEntryGets a LookupEntry from the collection with the Guid value.
Remove(LookupEntry entry)BooleanRemoves 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
NameTypeDescription
LookupEntryIdStringthe 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
NameTypeDescription
parametersLookupEntryCreationInformationThe 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
NameTypeDescription
objectIdStringA string object identifier.
Return Value

LookupEntry

GetByGuid(Guid uid)

Gets a LookupEntry from the collection with the Id value.

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

LookupEntry

GetById(String objectId)

Gets a LookupEntry from the collection with the Guid value.

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

LookupEntry

Remove(LookupEntry entry)

Removes the specified LookupEntry from the collection.

Syntax
Boolean Remove(LookupEntry entry)
Parameters
NameTypeDescription
entryLookupEntryThe LookupEntry to remove.
Return Value

Boolean

See Also

CustomField
LookupEntry
LookupEntryCreationInformation
LookupTable
WorkflowDesignerField

© 2018 Microsoft