RallyRestApiGetByReference Method (String, String) |
Get the object described by the specified reference.
Namespace: Rally.RestApiAssembly: Rally.RestApi (in Rally.RestApi.dll) Version: 3.1.1.0 (3.1.1.0)
Syntax public Object GetByReference(
string aRef,
params string[] fetchedFields
)
Public Function GetByReference (
aRef As String,
ParamArray fetchedFields As String()
) As Object
public:
Object^ GetByReference(
String^ aRef,
... array<String^>^ fetchedFields
)
member GetByReference :
aRef : string *
fetchedFields : string[] -> Object
Parameters
- aRef
- Type: SystemString
the reference - fetchedFields
- Type: SystemString
the list of object fields to be fetched
Return Value
Type:
ObjectA
DynamicJsonObject containing the requested object.
Exceptions Examples 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