SetScheduleOccurrenceNotes Method
- Last UpdatedApr 15, 2025
- 2 minute read
Sets a note to ScheduleOccurrenceNotesInfo for a specified datetime in the Intelatrac database.
'Declaration
Public Function SetScheduleOccurrenceNotes( _
ByVal scheduleOccurrenceInfo As ScheduleOccurrenceInfo, _
ByVal dateTime As Date, _
ByVal notes As String, _
ByVal reasonCodeInfo As ReasonCodeInfo, _
ByVal token As String _
) As ErrorInfo
'Usage
Dim instance As SdkClient
Dim scheduleOccurrenceInfo As ScheduleOccurrenceInfo
Dim dateTime As Date
Dim notes As String
Dim reasonCodeInfo As ReasonCodeInfo
Dim token As String
Dim value As ErrorInfo
value = instance.SetScheduleOccurrenceNotes(scheduleOccurrenceInfo, dateTime, notes, reasonCodeInfo, token)
public ErrorInfo SetScheduleOccurrenceNotes(
ScheduleOccurrenceInfo scheduleOccurrenceInfo,
DateTime dateTime,
string notes,
ReasonCodeInfo reasonCodeInfo,
string token
)
public:
ErrorInfo^ SetScheduleOccurrenceNotes(
ScheduleOccurrenceInfo^ scheduleOccurrenceInfo,
DateTime dateTime,
String^ notes,
ReasonCodeInfo^ reasonCodeInfo,
String^ token
)
Parameters
- scheduleOccurrenceInfo
- The ScheduleOccurrenceInfo object.
- dateTime
- Datetime of the schedule date for which the note should be saved.
- notes
- Notes to be stored for a particular schedule.
- reasonCodeInfo
- Reason code info to be stored for a particular schedule.
- token
- A security token retrieved via
AIMserver request
Return Value
Returns the ErrorInfo object, which indicates success or failure.
• The value for the scheduleOccurrenceInfo input parameter can be fetched using the GetScheduleOccurrenceInfos() SDK method. • The value for the reasonCodeInfo input parameter can be fetched using the GetReasonCodes() SDK method. • If the reason code given in the reasonCodeInfo input parameter does not exist in the database, it will be imported first and then assigned to the given schedule occurrence. • When adding new notes, you must have at least one notes or reasonCodeInfo parameter specified. • If the notes are already present, then the notes or reasonCodeInfo parameters are not required. The following example shows how the SDK method can be invoked without the notes and reasonCodeInfo parameters:
SetReasonCodes (access, scheduleOccurrenceInfo, “2016-08-25”, “”, null)