Related Topics
Case Class
This class represents a Case object.
Properties
PROPERTY NAME |
DATA TYPE |
DESCRIPTION |
---|---|---|
Group |
String |
The Group Name configured for the Case. |
Methods


This API will return a List object containing all of the properties for a Case.
Parameters
None
Returns
list <object>: A list of Case property objects.
Example
var myCase = Case.GetCaseByCASEINSTID(bp, "CASEINSTID");
List<NameValueEx> myVals = myCase.GetCaseProperties();
// Get the first value from the list
string val = myVals[0].Value;


This API will return the specified property of a Case object. This API will return the value from any case property type, including number or DateTime values, cast as a string.
Parameters
pPropName: The string name of the property to return.
Returns
string: The case property value.
Example
var myCase = Case.GetCaseByCASEINSTID(bp, "CASEINSTID");
string myVal = myCase.GetPropertyText("PropertyName");


This API will return the specified property of a Case object, if the property is a numeric value. If the property is a string or a DateTime, the API will return "0".
Parameters
pPropName: The string name of the property to return.
Returns
decimal: A decimal number containing the case property value.
Example
var myCase = Case.GetCaseByCASEINSTID(bp, "CASEINSTID");
string myVal = myCase.GetPropertyNumber("PropertyName");


This API will return the specified property of a Case object, if the property is a DateTime value. If the property is a string or a number, the API will return null.
Parameters
pPropName: The string name of the property to return.
Returns
object: A DateTime object containing the case property value.
Example
var myCase = Case.GetCaseByCASEINSTID(bp, "CASEINSTID");
string myVal = myCase.GetPropertyDateTime("PropertyName");


This API will set the specified property of a Case object. If the case property is a numeric or DateTime value, Process Director will cast the string to the correct data type.
Parameters
pPropName: The string name of the property to return.
Returns
None
Example
var myCase = Case.GetCaseByCASEINSTID(bp, "CASEINSTID");
string myVal = "Value";
myCase.SetPropertyText("PropertyName") = myVal;


This API will set the specified property of a Case object, if the case property is a numeric value. Otherwise, the value will be set to null.
Parameters
pPropName: The string name of the property to return.
Returns
None
Example
var myCase = Case.GetCaseByCASEINSTID(bp, "CASEINSTID");
int myVal = 1;
myCase.SetPropertyNumber("PropertyName") = myVal;


This API will set the specified property of a Case object, if the case property is a DateTime value. Otherwise, the value will be set to null.
Parameters
pPropName: The string name of the property to return.
Returns
None
Example
var myCase = Case.GetCaseByCASEINSTID(bp, "CASEINSTID");
datetime myDate = new DateTime(2023, 1, 18);
myCase.SetPropertyDateTime("PropertyName") = myDate;
Documentation Feedback and Questions
If you notice some way that this document can be improved, we're happy to hear your suggestions. Similarly, if you can't find an answer you're looking for, ask it via feedback. Simply click on the button below to provide us with your feedback or ask a question. Please remember, though, that not every issue can be addressed through documentation. So, if you have a specific technical issue with Process Director, please open a support ticket.