Retrieves a scorecard from a SharePoint list.
Assembly: Microsoft.PerformancePoint.Scorecards.Store (in Microsoft.PerformancePoint.Scorecards.Store.dll)
- Type: Microsoft.PerformancePoint.Scorecards.RepositoryLocation
The location of the scorecard in the SharePoint list. Only the ItemUrl property must be defined.
Return valueType: Microsoft.PerformancePoint.Scorecards.Scorecard
The requested scorecard, or a null reference (Nothing in Visual Basic) if it does not exist.
The following code example shows how to retrieve a scorecard from the repository, based on the server-relative path to the object.
Before you can compile this code example, you must do the following:
Configure your development environment and create a C# class library project in Visual Studio. For information about configuring a development environment, see Start: Set up the development environment for SharePoint 2013.
Add the Microsoft.PerformancePoint.Scorecards.Client, Microsoft.PerformancePoint.Scorecards.ServerCommon, and Microsoft.PerformancePoint.Scorecards.Store DLLs as references to your project. For more information about PerformancePoint Services DLLs, see PerformancePoint Services DLLs Used in Development Scenarios.
Add the following using directives to your class.
Create a method that defines a string variable named "relativePath" to store the server-relative path to the object. The following example path sets the object identifier to "5": /BI Center/Lists/PerformancePoint Content/5_.000.
Paste the following code example into the new method.