Set-SPProjectOdataConfiguration
Applies to: Project Server 2013
Topic Last Modified: 2015-03-09
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>]
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.
Windows PowerShell with Project Server
| Parameter | Required | Type | Description | ||
|---|---|---|---|---|---|
| AcceptCountRequests | Optional | System.Boolean | Sets whether requests with the | ||
| AcceptProjectionRequests | Optional | System.Boolean | Sets whether projection requests should be accepted. Projection requests are made by using the | ||
| 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.
| ||
| 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 | ||
| EntitySetName | Optional | System.String | Specifies the entity name that is used to set a page size override with | ||
| 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). |
----------------------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.

Note: