cityworks
    Preparing search index...

    Class CasePeople

    Index

    Case People

    • Add a people record to a case

      Parameters

      • caObjectId: number

        The Case Object ID for the case to which to add the person

      • name: string

        The name of the person to add to the case.

      • Optionaloptions: Object

        See /{subdirectory}/apidocs/#/service-info/Pll/CasePeople for more options.

      Returns Promise<unknown>

      Returns Promise that represents an object describing the newly-added person. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPeopleItemBase

    • Delete specific people records

      Parameters

      • caPeopleId: number

        The Case Object ID for the case to which to add the person

      Returns Promise<unknown>

      Returns Promise that represents the result of the delete operation.

    • Delete all people records attached to a specific case

      Parameters

      • caObjectId: number

        The Case Object ID for the case to which to add the person

      Returns Promise<unknown>

      Returns Promise that represents the result of the delete operation.

    • Get people records attached to a specific case

      Parameters

      • caObjectId: number

        The Case Object ID for the case to which to add the person

      Returns Promise<unknown>

      Returns Promise that represents an object describing the newly-added person. See /{subdirectory}/apidocs/#/data-type-info;dataType=CaPeopleItemBase

    • Get all the people roles available

      Returns Promise<unknown>

      Returns Promise that represents an collection of configured People Roles

    • Search for people records

      Parameters

      • searchOptions: {
            AddressLine1: string;
            AddressLine2: string;
            CaObjectId: number;
            CaPeopleId: number;
            CityName: string;
            CountryCode: string;
            CountryName: string;
            Email: string;
            Name: string;
            PhoneHome: string;
            PhoneMobile: string;
            PhoneWork: string;
            RoleCode: string;
            RoleDesc: string;
            RoleId: number;
            StateCode: string;
            StateName: string;
            ZipCode: string;
        }

        Where you specify search options that assume a logical 'and' operation

      • idsOnly: boolean = false

        If you only wants the IDs of the people records that match the search criteria, set this to true. Otherwise, set it to false.

      Returns Promise<unknown>

      Returns Promise that represents an array of people record IDs that match the search criteria.