Add Method (CertType)
- Last UpdatedNov 06, 2025
- 4 minute read
'Declaration
Public Shared Sub Add( _
ByVal sessionId As Integer, _
ByVal certName As String, _
ByVal maxLevel As Integer, _
ByVal audit As Boolean, _
ByVal duration As Integer, _
ByVal hoursToRenew As Nullable(Of Integer), _
ByVal availToOperations As Boolean, _
ByVal availToOperationSteps As Boolean, _
ByVal availToProducingItems As Boolean, _
ByVal availToConsumingItems As Boolean, _
ByVal availToAttributes As Nullable(Of Boolean), _
ByVal availToGradeChange As Nullable(Of Boolean), _
ByVal availToStateChange As Nullable(Of Boolean), _
ByVal availToLogData As Boolean, _
ByVal totalSignOffsRequired As Nullable(Of Integer), _
ByVal requireSignOffComments As Nullable(Of Boolean), _
ByVal signoffNotes As String, _
ByVal uptoExperimental As Nullable(Of Boolean), _
ByVal uptoApproved As Nullable(Of Boolean), _
ByVal uptoCertified As Nullable(Of Boolean), _
ByVal downToDisabled As Nullable(Of Boolean), _
ByVal downToExperimental As Nullable(Of Boolean), _
ByVal downToApproved As Nullable(Of Boolean), _
ByVal spare1 As String, _
ByVal spare2 As String, _
ByVal spare3 As String, _
ByVal spare4 As String, _
ByVal lastEditComment As String, _
ByRef lastEditAt As Date _
)
'Usage
Dim sessionId As Integer
Dim certName As String
Dim maxLevel As Integer
Dim audit As Boolean
Dim duration As Integer
Dim hoursToRenew As Nullable(Of Integer)
Dim availToOperations As Boolean
Dim availToOperationSteps As Boolean
Dim availToProducingItems As Boolean
Dim availToConsumingItems As Boolean
Dim availToAttributes As Nullable(Of Boolean)
Dim availToGradeChange As Nullable(Of Boolean)
Dim availToStateChange As Nullable(Of Boolean)
Dim availToLogData As Boolean
Dim totalSignOffsRequired As Nullable(Of Integer)
Dim requireSignOffComments As Nullable(Of Boolean)
Dim signoffNotes As String
Dim uptoExperimental As Nullable(Of Boolean)
Dim uptoApproved As Nullable(Of Boolean)
Dim uptoCertified As Nullable(Of Boolean)
Dim downToDisabled As Nullable(Of Boolean)
Dim downToExperimental As Nullable(Of Boolean)
Dim downToApproved As Nullable(Of Boolean)
Dim spare1 As String
Dim spare2 As String
Dim spare3 As String
Dim spare4 As String
Dim lastEditComment As String
Dim lastEditAt As Date
CertType.Add(sessionId, certName, maxLevel, audit, duration, hoursToRenew, availToOperations, availToOperationSteps, availToProducingItems, availToConsumingItems, availToAttributes, availToGradeChange, availToStateChange, availToLogData, totalSignOffsRequired, requireSignOffComments, signoffNotes, uptoExperimental, uptoApproved, uptoCertified, downToDisabled, downToExperimental, downToApproved, spare1, spare2, spare3, spare4, lastEditComment, lastEditAt)
public static void Add(
int sessionId,
string certName,
int maxLevel,
bool audit,
int duration,
Nullable<int> hoursToRenew,
bool availToOperations,
bool availToOperationSteps,
bool availToProducingItems,
bool availToConsumingItems,
Nullable<bool> availToAttributes,
Nullable<bool> availToGradeChange,
Nullable<bool> availToStateChange,
bool availToLogData,
Nullable<int> totalSignOffsRequired,
Nullable<bool> requireSignOffComments,
string signoffNotes,
Nullable<bool> uptoExperimental,
Nullable<bool> uptoApproved,
Nullable<bool> uptoCertified,
Nullable<bool> downToDisabled,
Nullable<bool> downToExperimental,
Nullable<bool> downToApproved,
string spare1,
string spare2,
string spare3,
string spare4,
string lastEditComment,
out DateTime lastEditAt
)
Parameters
- sessionId
- Required. Holds the session ID and thus the user who is making this method call.
- certName
- Required. Holds the name of the certification.
- maxLevel
- Required. Holds the maximum level of the certification.
- audit
- Required. Holds a flag that indicates whether the certification requires an audit.
- duration
- Required. Holds the number of days that the certification is valid (0 = permanent).
- hoursToRenew
- Optional. Holds the number of hours of work required to retain the certification.
- availToOperations
- Required. Holds a flag that indicates whether the certification can be applied to operations.
- availToOperationSteps
- Required. Holds a flag that indicates whether the certification can be applied to operation steps.
- availToProducingItems
- Required. Holds a flag that indicates whether the certification can be applied to producing items.
- availToConsumingItems
- Required. Holds a flag that indicates whether the certification can be applied to consuming items.
- availToAttributes
Optional. Holds a flag that indicates whether the certification can be applied to editing attributes.
Note: Applying certifications to attributes is not currently supported.
- availToGradeChange
Optional. Holds a flag that indicates whether the certification can be applied to item grade changes.
Note: Applying certifications to item grade changes is not currently supported.
- availToStateChange
Optional. Holds a flag that indicates whether the certification can be applied to item state changes.
Note: Applying certifications to item state changes is not currently supported.
- availToLogData
- Required. Holds a flag that indicates whether the certification can be applied to logging data.
- totalSignOffsRequired
- Optional. Holds the total number of sign-offs required.
- requireSignOffComments
- Optional. Holds a flag that indicates whether sign-off comments are required.
- signoffNotes
- Optional. Holds sign-off notes to show the user when signing off on this certification.
- uptoExperimental
Optional. Holds a flag that indicates whether the certification is needed to increase the status of a process to experimental.
Note: Using certifications to restrict changing the status of a process is not currently supported.
- uptoApproved
Optional. Holds a flag that indicates whether the certification is needed to increase the status of a process to approved.
Note: Using certifications to restrict changing the status of a process is not currently supported.
- uptoCertified
Optional. Holds a flag that indicates whether the certification is needed to increase the status of a process to certified.
Note: Using certifications to restrict changing the status of a process is not currently supported.
- downToDisabled
Optional. Holds a flag that indicates whether the certification is needed to decrease the status of a process to disabled.
Note: Using certifications to restrict changing the status of a process is not currently supported.
- downToExperimental
Optional. Holds a flag that indicates whether the certification is needed to decrease the status of a process to experimental.
Note: Using certifications to restrict changing the status of a process is not currently supported.
- downToApproved
Optional. Holds a flag that indicates whether the certification is needed to decrease the status of a process to approved.
Note: Using certifications to restrict changing the status of a process is not currently supported.
- spare1
- Optional. Holds user-defined content for the spare1 field. Defaults to null.
- spare2
- Optional. Holds user-defined content for the spare2 field. Defaults to null.
- spare3
- Optional. Holds user-defined content for the spare3 field. Defaults to null.
- spare4
- Optional. Holds user-defined content for the spare4 field. Defaults to null.
- lastEditComment
- Optional. Holds comments that describes why this record is being added.
- lastEditAt
- Output. Holds the returned date/time when this record was created. The lastEditAt parameter is used in other methods that modify or delete this record for optimistic concurrency control.