Skip to main content

system.kanoa.schedule.getExistingEventAdjustedTimes

Description

Checks the existingEvent time against an eventToSchedule time and returns the existingEvent with adjusted time and an action i.e 'adjust' or 'delete'.

Syntax

getExistingEventAdjustedTimes(scheduleOption, eventToSchedule, existingEvent)

Parameters:
  • scheduleOption (string): 'fixed', 'override', 'wrap'.
  • eventToSchedule (dict): scheduleBlockInfo for the new event.
  • existingEvent (dict): scheduleBlockInfo for the existing event.

  • Returns:
  • existingEvent (dict): Adjusted scheduleBlockInfo.
  • dateAdjusted (bool): Whether the date was adjusted.
  • Dictionary

    Dictionary for eventToSchedule
    ParameterTypeRequiredNotes
    startDatedatetimeStart of the event to schedule
    endDatedatetimeEnd of the event to schedule

    Dictionary

    Dictionary for existingEvent
    ParameterTypeRequiredNotes
    startDatedatetimeStart of the existing event
    endDatedatetimeEnd of the existing event