Export (0) Print
Expand All
Expand Minimize

Set-SPProjectOdataConfiguration

Project Server 2013

Published: July 16, 2012

This documentation is preliminary and subject to change.

Sets the properties for how the OData service is configured for an instance of Project Web App.

Set-SPProjectOdataConfiguration [-AcceptCountRequests <$true | $false>] [-AcceptProjectionRequests <$true | $false>] [-AssignmentCollection <SPAssignmentCollection>] [-ClearEntityPageSizeOverrides <SwitchParameter>] [-DefaultMaxPageSize <Int32>] [-EntitySetName <String>] [-MaxResultsPerCollection <Int32>] [-PageSizeOverride <Int32>] [-UseVerboseErrors <$true | $false>]

Parameters

Parameter Required Type Description

AcceptCountRequests

Optional

System.Boolean

Sets whether requests with the $count path segment or the $inlinecount query options are accepted.

AcceptProjectionRequests

Optional

System.Boolean

Sets whether projection requests should be accepted. Projection requests are made by using the $select query option.

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

noteNote:

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

ClearEntityPageSizeOverrides

Optional

System.Management.Automation.SwitchParameter

Clears all page-size overrides that had been set for any entities.

DefaultMaxPageSize

Optional

System.Int32

Sets the default page size. This is used for any entities that do not have an override set using the PageSizeOverride parameter.

EntitySetName

Optional

System.String

Specifies the entity name that is used to set a page size override with PageSizeOverride.

MaxResultsPerCollection

Optional

System.Int32

Sets the integer value that indicates the maximum number of results per entity. This parameter cannot be used in conjunction with paging.

PageSizeOverride

Optional

System.Int32

Overrides the page size that is used for a specific entity.

UseVerboseErrors

Optional

System.Boolean

Sets the service to use more verbose error messages (for example, stack trace).

Detailed Description

The Set-SPProjectOdataConfiguration cmdlet sets the settings for how the OData service is configured for an instance of Project Web App. It allows the user to configure the settings for a list of parameters that specify paging, the enabling of various querying functionality, whether MaxResultsPerCollection has been enabled, and whether verbose errors are enabled. Paging can be specified per entity. If no paging overrides exist for a given entity, the DefaultMaxPageSize parameter is used. MaxResultsPerCollection cannot be used in conjunction with paging.

Input Types

Return Types

----------------------EXAMPLE-----------------------

Set-SPProjectOdataConfiguration -ClearEntityPageSizeOverrides

This example clears any page size overrides that have been set for any specific entities.

----------------------EXAMPLE 1-----------------------

Set-SPProjectOdataConfiguration -AcceptProjectionRequests $true

This example sets AcceptProjectionRequests to true.

----------------------EXAMPLE 2-----------------------

Set-SPProjectOdataConfiguration -DefaultMaxPageSize 50

This example sets the default maximum page size to 50 rows.

----------------------EXAMPLE 3-----------------------

Set-SPProjectOdataConfiguration -EntitySetName Assignments -PageSizeOverride 100

This example sets the page size override for the Assignments entity.

Change History

Date Description

July 16, 2012

Initial publication

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft