GetReasonCodes Method
- Last UpdatedApr 15, 2025
- 1 minute read
Gets a collection of records of the ReasonCodeInfo lightweight object type from the Intelatrac database based on the specified criteria.
'Declaration
Public Function GetReasonCodes( _
ByVal organizationId As Guid, _
ByVal criteria As String, _
ByVal token As String _
) As Collection(Of ReasonCodeInfo)
'Usage
Dim instance As SdkClient
Dim organizationId As Guid
Dim criteria As String
Dim token As String
Dim value As Collection(Of ReasonCodeInfo)
value = instance.GetReasonCodes(organizationId, criteria, token)
public Collection<ReasonCodeInfo> GetReasonCodes(
Guid organizationId,
string criteria,
string token
)
public:
Collection<ReasonCodeInfo^>^ GetReasonCodes(
Guid organizationId,
String^ criteria,
String^ token
)
Parameters
- organizationId
- The organization scope to limit the result set.
- criteria
- The criteria clause used to limit the result set.
- token
- A security token retrieved via
AIMserver request
Return Value
A typed collection of ReasonCodeInfo objects.
The WHERE clause in the criteria can include any of the data members names to fetch the reason codes from the Intelatrac database. This example would fetch all the reason codes with Application Id ‘4175FCBD-46F6-404C-A864-324A6D61650E’:
“WHERE Application_ID = ‘4175FCBD-46F6-404C-A864-324A6D61650E’”
This example would fetch a reason code with Name as ‘Reason1’ and Application Id ‘4175FCBD-46F6-404C-A864-324A6D61650E’:
"WHERE Reason = ‘Reason1’ AND Application_ID = ‘4175FCBD-46F6-404C-A864-324A6D61650E’”