Click or drag to resize
RallyRestApiGetByReference Method (String, String)
Get the object described by the specified reference.

Namespace: Rally.RestApi
Assembly: Rally.RestApi (in Rally.RestApi.dll) Version: 3.1.1.0 (3.1.1.0)
Syntax
public Object GetByReference(
	string aRef,
	params string[] fetchedFields
)

Parameters

aRef
Type: SystemString
the reference
fetchedFields
Type: SystemString
the list of object fields to be fetched

Return Value

Type: Object
A DynamicJsonObject containing the requested object.
Exceptions
ExceptionCondition
RallyUnavailableExceptionRally returned an HTML page. This usually occurs when Rally is off-line. Please check the ErrorMessage property for more information.
RallyFailedToDeserializeJsonThe JSON returned by Rally was not able to be deserialized. Please check the JsonData property for what was returned by Rally.
InvalidOperationExceptionOccurs if authentication is not completed prior to calling this method.
ArgumentNullExceptionOccurs if the passed in aRef parameter is null.
Examples
C#
string aRef = "https://preview.rallydev.com/slm/webservice/v2.0/defect/12345.js"
DynamicJsonObject item = restApi.GetByReference(aRef, "Name", "FormattedID");
string itemName = item["Name"];
See Also