SetReasonCodes Method
- Last UpdatedApr 15, 2025
- 1 minute read
Sets a collection of records of ReasonCodeInfo lightweight object type in the Intelatrac database.
'Declaration
Public Function SetReasonCodes( _
ByVal reasonCodeCollection As Collection(Of ReasonCodeInfo), _
ByVal organizationId As Guid, _
ByVal token As String _
) As Collection(Of ErrorInfo)
'Usage
Dim instance As SdkClient
Dim reasonCodeCollection As Collection(Of ReasonCodeInfo)
Dim organizationId As Guid
Dim token As String
Dim value As Collection(Of ErrorInfo)
value = instance.SetReasonCodes(reasonCodeCollection, organizationId, token)
public Collection<ErrorInfo> SetReasonCodes(
Collection<ReasonCodeInfo> reasonCodeCollection,
Guid organizationId,
string token
)
public:
Collection<ErrorInfo^>^ SetReasonCodes(
Collection<ReasonCodeInfo^>^ reasonCodeCollection,
Guid organizationId,
String^ token
)
Parameters
- reasonCodeCollection
- A collection of ReasonCodeInfo objects to be stored in the database.
- organizationId
- An organization identifier owning the resource
- token
- A security token retrieved via
AIMserver request
Return Value
Returns the collection ErrorInfo object, which indicates success or failure.
The reason code Name, AppitemId, and ApplicationId properties in the ReasonCodeInfo object are mandatory.
The reason code name should be unique within an application owner.That is, there can be two ReasonCodeInfo objects with the same reason code Name but each must have a different ApplicationId.
If you want to use an external ApplicationId in the ReasonCodeInfo object, then that external application must first be registered using the RegisterApplicationType() SDK method before calling the SetReasonCodes() method.