AddReasons Method
- Last UpdatedNov 06, 2025
- 1 minute read
The AddReasons() method adds multiple utilization raw reason records to the Util_Raw_Reas table, including the default reason and the flag for whether a user is prompted to select a reason. Also, if allowable utilization reasons from which a user can choose for a raw reason are included in the RawReasonCode array, link records are added to the Util_Reas_Link table.
'Declaration
Public Shared Sub AddReasons( _
ByVal sessionId As Integer, _
ByVal entId As Integer, _
ByVal rawReasonCodes() As RawReasonCode _
)
'Usage
Dim sessionId As Integer
Dim entId As Integer
Dim rawReasonCodes() As RawReasonCode
UtilRawReas.AddReasons(sessionId, entId, rawReasonCodes)
public static void AddReasons(
int sessionId,
int entId,
RawReasonCode[] rawReasonCodes
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- entId
- Required. Holds the ID of the entity for which the raw reasons are being added.
- rawReasonCodes
- Required. The list of raw reason codes to be added.