cityworks
    Preparing search index...

    Class CaseFlags

    Index

    Case Flags

    • Add flag to case

      Parameters

      • caObjectId: number

        The Case Object to add the flag to.

      • flagId: number

        The flag ID

      • severity: string

        The severity of the flag

      • appliedBy: number

        Which userID is applying the flag

      • DateApplied: Date

        The date that the flag should be applied

      • Optionaloptions: {
            CompletedBy?: number;
            DateCompleted?: Date;
            DisciplineId?: number;
            Notes?: string;
        }

        Options for CaseFlags includes Notes, DisciplineId, CompletedBy, DateCompleted

      Returns Promise<unknown>

      Returns Promise that represents an object describing CaFlag.

    • Delete specific flag from case

      Parameters

      • caFlagId: number

      Returns Promise<unknown>

      Returns Promise that represents the CaFlag that has been deleted.

    • Delete all flags from case

      Parameters

      • caObjectId: number

        The Case Object to detach the flags from.

      Returns Promise<unknown>

      Returns Promise that represents the number of flags deleted from the case provided.

    • Get flags attached to a specific case

      Parameters

      • caObjectId: number

        The Case Object from which to get attached flags

      Returns Promise<unknown>

      Returns Promise that represents a collection of the default CaFlags.

    • Search for Case Flags. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields

      Parameters

      • Optionalfilters: Object

        The parameters to search by. (CaFlagId, Flag, FlagDesc)

      Returns Promise<unknown>

      Returns Promise that represents an Array of resulting Flags