> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ConsentPurpose

> This is the archive Consent Purpose Provider for GDPR Admin

## "ConsentPurpose"

This provider name is implemented by the class <see cref="T:SuperOffice.CRM.ArchiveLists.ConsentPurposeProvider">SuperOffice.CRM.ArchiveLists.ConsentPurposeProvider</see> inside NetServer's SODatabase assembly.

This is the archive Consent Purpose Provider for GDPR Admin
and for GDPR relations to person, if you join and restrict on person

## Supported Entities

| Name                    | Description     |
| ----------------------- | --------------- |
| "consentPurpose"        | Consent purpose |
| "deletedConsentPurpose" | Deleted         |

## Supported Columns

| Name                                                   | Restriction    | Description                                                                                                                                                                                                    | OrderBy |
| ------------------------------------------------------ | -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| getAllRows                                             | bool           | GetAll: Get all rows of archive - use with care, you may be fetching the whole database                                                                                                                        |         |
| getNoRows                                              | bool           | GetNone: Do not get any rows from the archive                                                                                                                                                                  |         |
| consentPurposeId                                       | int            | Consent purpose ID: Consent purpose ID                                                                                                                                                                         | x       |
| active                                                 | bool           | Active:                                                                                                                                                                                                        | x       |
| key                                                    | string         | Purpose ID:                                                                                                                                                                                                    | x       |
| name                                                   | string         | Purpose name: The name of the consent purpose                                                                                                                                                                  | x       |
| tooltip                                                | string         | Description:                                                                                                                                                                                                   | x       |
| privacyStatementDescription                            | string         | External privacy statement: Privacy statement                                                                                                                                                                  | x       |
| privacyStatementUrl                                    | string         | External privacy statement URL: Privacy statement URL                                                                                                                                                          | x       |
| updatedBy                                              | associate      | Updated by: The user who last updated the data                                                                                                                                                                 |         |
| updatedDate                                            | date           | Updated: The date/time the data was last updated in UTC.                                                                                                                                                       | x       |
| rank                                                   | int            | Rank                                                                                                                                                                                                           | x       |
| consentPerson/consentPersonId                          | int            | Consent ID: ID of consent                                                                                                                                                                                      | x       |
| consentPerson/personId                                 | int            | Contact ID: Database ID of the contact row                                                                                                                                                                     | x       |
| consentPerson/active                                   | bool           | Active: Consent has been given                                                                                                                                                                                 | x       |
| consentPerson/legalBase                                | listAny        | Legal basis: Legal basis of this consent                                                                                                                                                                       | x       |
| consentPerson/consentSource                            | listAny        | Source: Source of this consent                                                                                                                                                                                 | x       |
| consentPerson/comment                                  | string         | Comment: Comment                                                                                                                                                                                               | x       |
| consentPerson/hasComment                               | bool           | Has comment: Has comment                                                                                                                                                                                       | x       |
| consentPerson/updatedBy                                | associate      | Updated by: The user who last updated the data                                                                                                                                                                 | x       |
| consentPerson/updatedDate                              | date           | Updated: The date/time the data was last updated in UTC.                                                                                                                                                       | x       |
| consentPerson/person/personId                          | int            | Contact - DB ID: Displays the database ID of a contact                                                                                                                                                         | x       |
| consentPerson/person/firstName                         | string         | Contact - First name: Displays the contact's first name                                                                                                                                                        | x       |
| consentPerson/person/lastName                          | string         | Contact - Last name: Displays the contact's last name                                                                                                                                                          | x       |
| consentPerson/person/middleName                        | string         | Contact - Middle name: Displays the contact's middle name.                                                                                                                                                     | x       |
| consentPerson/person/fullName                          | string         | Contact - Contact: Displays the contact to which an item is linked                                                                                                                                             | x       |
| consentPerson/person/contactId                         | int            | Contact - Company ID: Database ID of company                                                                                                                                                                   | x       |
| consentPerson/person/hasInfoText                       | bool           | Contact - Has note: Displays an icon indicating if there is additional information available about the contact                                                                                                 | x       |
| consentPerson/person/hasInterests                      | bool           | Contact - Has interests: Displays an Icon indicating if the contact has active interests                                                                                                                       | x       |
| consentPerson/person/personHasInterests                | bool           | Contact - Has interests: Displays an Icon indicating if the contact has active interests                                                                                                                       | x       |
| consentPerson/person/mrMrs                             | string         | Contact - Mr/Ms: Displays whether the contact is addressed as Mr or Ms                                                                                                                                         | x       |
| consentPerson/person/position                          | listAny        | Contact - Position                                                                                                                                                                                             | x       |
| consentPerson/person/personNumber                      | string         | Contact - Number: Displays the contact's number                                                                                                                                                                | x       |
| consentPerson/person/title                             | string         | Contact - Title: Displays the contact's job title                                                                                                                                                              | x       |
| consentPerson/person/personCountry                     | listAny        | Contact - Country: Country                                                                                                                                                                                     | x       |
| consentPerson/person/personCountryId                   | int            | Contact - Country ID: Country ID                                                                                                                                                                               | x       |
| consentPerson/person/personNoMail                      | bool           | Contact - No Mailings: Displays the contact's No Mailings checkbox                                                                                                                                             | x       |
| consentPerson/person/rank                              | int            | Contact - Rank: Displays a contact's current rank                                                                                                                                                              | x       |
| consentPerson/person/birthdate                         | *None*         | Contact - Birthdate: Displays the contact's date of birth                                                                                                                                                      |         |
| consentPerson/person/associateType                     | *None*         | Contact - User type: Displays an icon indicating if a contact is an associate or external contact with log-in rights and currently online. This information is updated only once while the archive is loading. |         |
| consentPerson/person/useAsMailingAddress               | bool           | Contact - Use as postal address: Use as postal address                                                                                                                                                         | x       |
| consentPerson/person/personSource                      | listAny        | Contact - Source: Source (Contact)                                                                                                                                                                             | x       |
| consentPerson/person/retired                           | bool           | Contact - Former employee: Indicates whether the contact has retired/left the company                                                                                                                          | x       |
| consentPerson/person/birthYear                         | int            | Contact - Birth year: Displays contact's birth year                                                                                                                                                            | x       |
| consentPerson/person/birthMonth                        | int            | Contact - Birth month: Displays contact's birth month                                                                                                                                                          | x       |
| consentPerson/person/birthDay                          | int            | Contact - Birth day: Displays contact's birth day (day of month)                                                                                                                                               | x       |
| consentPerson/person/kanaFirstName                     | string         | Contact - First name, kana: Contact's first name, in kana alphabet                                                                                                                                             | x       |
| consentPerson/person/kanaLastName                      | string         | Contact - Last name, kana: Contact's last name, in kana alphabet                                                                                                                                               | x       |
| consentPerson/person/personUpdatedBy                   | associate      | Contact - Updated by: The user who last updated the data                                                                                                                                                       | x       |
| consentPerson/person/personUpdatedByFullName           | associate      | Contact - Updated by - Full name: The user who last updated the data                                                                                                                                           | x       |
| consentPerson/person/personUpdatedDate                 | date           | Contact - Updated: The date/time the data was last updated in UTC.                                                                                                                                             | x       |
| consentPerson/person/personRegisteredBy                | associate      | Contact - Registered by: The user who registered the data                                                                                                                                                      | x       |
| consentPerson/person/personRegisteredByFullName        | associate      | Contact - Registered by - Full name: The user who registered the data                                                                                                                                          | x       |
| consentPerson/person/personRegisteredDate              | date           | Contact - Registered date: The date/time the data was registered in UTC.                                                                                                                                       | x       |
| consentPerson/person/portraitThumbnail                 | *None*         | Contact - Person image: Person image                                                                                                                                                                           |         |
| consentPerson/person/personActiveErpLinks              | bool           | Contact - ERP connected: Is there an active ERP Sync?                                                                                                                                                          | x       |
| consentPerson/person/ticketPriority                    | listAny        | Contact - Service priority: Default service priority for this contact                                                                                                                                          | x       |
| consentPerson/person/supportLanguage                   | listAny        | Contact - Preferred language: Preferred language used for reply templates and more                                                                                                                             | x       |
| consentPerson/person/supportAssociate                  | associate      | Contact - Our service contact: Default service contact for this contact                                                                                                                                        | x       |
| consentPerson/person/supportAssociateFullName          | associate      | Contact - Our service contact - Full name: Default service contact for this contact                                                                                                                            | x       |
| consentPerson/person/personAssociateId                 | associate      | Contact - Our contact: Displays our contact                                                                                                                                                                    | x       |
| consentPerson/person/personAssociateFullName           | associate      | Contact - Our contact - Full name: Displays our contact                                                                                                                                                        | x       |
| consentPerson/person/personCategory                    | listAny        | Contact - Category                                                                                                                                                                                             | x       |
| consentPerson/person/personCategoryGroup               | listAny        | Contact - Category group                                                                                                                                                                                       | x       |
| consentPerson/person/personCategoryRank                | int            | Contact - !!Category rank                                                                                                                                                                                      | x       |
| consentPerson/person/personBusiness                    | listAny        | Contact - Business                                                                                                                                                                                             | x       |
| consentPerson/person/leadStatus                        | listAny        | Contact - Lead status                                                                                                                                                                                          | x       |
| consentPerson/person/leadstatusRank                    | int            | Contact - !!Lead status RANK                                                                                                                                                                                   | x       |
| consentPerson/person/personDeletedDate                 | datetime       | Contact - Deleted date: Deleted date                                                                                                                                                                           |         |
| consentPerson/person/hasCompany                        | bool           | Contact - Has company: The contact is associated with a company                                                                                                                                                | x       |
| consentPerson/person/isProjectMember                   | bool           | Contact - Is project member: This person is a project member                                                                                                                                                   | x       |
| consentPerson/person/isStakeholder                     | bool           | Contact - Is stakeholder: This person is a sale stakeholder                                                                                                                                                    | x       |
| consentPerson/person/updatedByWorkflow                 | listAny        | Contact - Updated by flow: Updated by flow                                                                                                                                                                     | x       |
| consentPerson/person/whenUpdatedByWorkflow             | datetime       | Contact - When updated by flow: When updated by flow                                                                                                                                                           | x       |
| consentPerson/person/createdByForm                     | listAny        | Contact - Created by form: Created by form                                                                                                                                                                     | x       |
| consentPerson/person/phone/formattedNumber             | string         | Contact - Phone: Displays phone number                                                                                                                                                                         |         |
| consentPerson/person/personDirectPhone/formattedNumber | string         | Contact - Direct - Phone: Displays phone number                                                                                                                                                                |         |
| consentPerson/person/personDirectPhone/description     | string         | Contact - Direct - Description: Phone number description                                                                                                                                                       | x       |
| consentPerson/person/personMobilePhone/formattedNumber | string         | Contact - Mobile - Phone: Displays phone number                                                                                                                                                                |         |
| consentPerson/person/personMobilePhone/description     | string         | Contact - Mobile - Description: Phone number description                                                                                                                                                       | x       |
| consentPerson/person/personPrivate/formattedNumber     | string         | Contact - Private - Phone: Displays phone number                                                                                                                                                               |         |
| consentPerson/person/personPrivate/description         | string         | Contact - Private - Description: Phone number description                                                                                                                                                      | x       |
| consentPerson/person/personPager/formattedNumber       | string         | Contact - Other - Phone: Displays phone number                                                                                                                                                                 |         |
| consentPerson/person/personPager/description           | string         | Contact - Other - Description: Phone number description                                                                                                                                                        | x       |
| consentPerson/person/personDirectFax/formattedNumber   | string         | Contact - Fax - Phone: Displays phone number                                                                                                                                                                   |         |
| consentPerson/person/personDirectFax/description       | string         | Contact - Fax - Description: Phone number description                                                                                                                                                          | x       |
| consentPerson/person/personInfo/textId                 | int            | Contact - Text ID                                                                                                                                                                                              | x       |
| consentPerson/person/personInfo/infoText               | positiveString | Contact - Information: Displays the text entered in the description field                                                                                                                                      | x       |
| consentPerson/person/email/emailProtocol               | string         | Contact - Protocol: E-mail protocol, such as SMTP                                                                                                                                                              | x       |
| consentPerson/person/email/emailAddress                | string         | Contact - E-mail                                                                                                                                                                                               | x       |
| consentPerson/person/email/emailDescription            | string         | Contact - Description                                                                                                                                                                                          | x       |
| consentPerson/person/email/emailId                     | int            | Contact - ID                                                                                                                                                                                                   | x       |
| consentPerson/person/email/emailLastSent               | datetime       | Contact - Last sent: The date and time an e-mail was last sent to this address                                                                                                                                 | x       |
| consentPerson/person/email/emailBounceCount            | int            | Contact - Bounce count: Bounce count for this e-mail address                                                                                                                                                   | x       |
| consentPerson/person/email/emailLastBounce             | datetime       | Contact - Last bounce: Date and time for last bounce to this e-mail address                                                                                                                                    | x       |
| consentPerson/person/email/emailHasBounced             | bool           | Contact - Has bounced: This checkbox is active if delivery to this e-mail address has failed.                                                                                                                  | x       |
| consentPerson/person/personUrl/URLAddress              | string         | Contact - URL                                                                                                                                                                                                  | x       |
| consentPerson/person/personUrl/URLDescription          | string         | Contact - Description                                                                                                                                                                                          | x       |
| consentPerson/person/personAddress/addressId           | int            | Contact - Contact address - Address ID: Database ID for the address record                                                                                                                                     | x       |

## Supported Columns (cont.)

| Name                                                              | Restriction   | Description                                                                                                                                                                | OrderBy |
| ----------------------------------------------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
| consentPerson/person/personAddress/line1                          | string        | Contact - Contact address - Address 1: First line of the address                                                                                                           | x       |
| consentPerson/person/personAddress/line2                          | string        | Contact - Contact address - Address 2: Second line of the address                                                                                                          | x       |
| consentPerson/person/personAddress/line3                          | string        | Contact - Contact address - Address 3: Third line of the address                                                                                                           | x       |
| consentPerson/person/personAddress/county                         | string        | Contact - Contact address - County: This criterion corresponds to the County field on the Company card. It will only be visible if required by a country's address format. | x       |
| consentPerson/person/personAddress/city                           | string        | Contact - Contact address - City: This criterion corresponds to the City field on the Company card.                                                                        | x       |
| consentPerson/person/personAddress/zip                            | string        | Contact - Contact address - Postcode: This criterion corresponds to the Zip Code field on the Company card.                                                                | x       |
| consentPerson/person/personAddress/state                          | string        | Contact - Contact address - State: This criterion corresponds to the State field on the Company card.  \It will only be visible if required by a country's address format. | x       |
| consentPerson/person/personAddress/wgs84latitude                  | decimal       | Contact - Contact address - Latitude: Latitude                                                                                                                             | x       |
| consentPerson/person/personAddress/wgs84longitude                 | decimal       | Contact - Contact address - Longitude: Longitude                                                                                                                           | x       |
| consentPerson/person/personAddress/formattedAddress               | *None*        | Contact - Contact address - {formattedAddress}: {formattedAddress}                                                                                                         |         |
| consentPerson/person/personAddress/formattedMultiLineAddress      | *None*        | Contact - Contact address - {formattedAddress}: {formattedAddress}                                                                                                         |         |
| consentPerson/person/personUdef/SuperOffice:1                     | string        | Contact - contactshorttext: tooltipshorttext                                                                                                                               | x       |
| consentPerson/person/personUdef/SuperOffice:2                     | string        | Contact - contactlongtext: tooltiplongtext                                                                                                                                 | x       |
| consentPerson/person/personUdef/SuperOffice:3                     | int           | Contact - contactnumber                                                                                                                                                    | x       |
| consentPerson/person/personUdef/SuperOffice:4                     | date          | Contact - contactdate                                                                                                                                                      | x       |
| consentPerson/person/personUdef/SuperOffice:5                     | unlimitedDate | Contact - contactunlimiteddate: tooltipunlimiteddate                                                                                                                       | x       |
| consentPerson/person/personUdef/SuperOffice:6                     | bool          | Contact - contactcheckbox                                                                                                                                                  | x       |
| consentPerson/person/personUdef/SuperOffice:7                     | listAny       | Contact - contactdropdownlistbox                                                                                                                                           | x       |
| consentPerson/person/personUdef/SuperOffice:8                     | decimal       | Contact - contactdecimal                                                                                                                                                   | x       |
| consentPerson/person/personUdef/SuperOffice:9                     | string        | Contact - page1saleonly                                                                                                                                                    | x       |
| consentPerson/person/personUdef/SuperOffice:10                    | string        | Contact - page1marketingonly                                                                                                                                               | x       |
| consentPerson/person/personUdef/SuperOffice:11                    | string        | Contact - page1adminonly                                                                                                                                                   | x       |
| consentPerson/person/personExtra/x\_person\_integer               | int           | Contact - Extra Integer: Custom person integer                                                                                                                             | x       |
| consentPerson/person/personExtra/x\_person\_hidden\_integer       | int           | Contact - Extra hidden integer: Custom integer field that is hidden                                                                                                        | x       |
| consentPerson/person/personExtra/x\_person\_float                 | decimal       | Contact - Extra float: Custom float field                                                                                                                                  | x       |
| consentPerson/person/personExtra/x\_person\_longtext              | string        | Contact - Extra Long Text: Custom long text field on person, keep HTML tags. Simple input, not text area. Default value = 'Hello there'                                    | x       |
| consentPerson/person/personExtra/x\_person\_date                  | date          | Contact - Extra date: Custom date field on person. Default value = 28.03.2019                                                                                              | x       |
| consentPerson/person/personExtra/x\_person\_datetime              | datetime      | Contact - Extra DateTime: Custom person date and time field. No default                                                                                                    | x       |
| consentPerson/person/personExtra/x\_person\_time                  | *None*        | Contact - Extra time: Custom time field on person. Current time as default                                                                                                 | x       |
| consentPerson/person/personExtra/x\_person\_boolean               | bool          | Contact - Extra Boolean: Custom boolean field on person. Default checked                                                                                                   | x       |
| consentPerson/person/personExtra/x\_person\_timespan              | timeSpan      | Contact - Extra timespan: Custom timespan on person. Minutes only in 15 units                                                                                              | x       |
| consentPerson/person/personExtra/x\_person\_shorttext             | string        | Contact - Extra short text: Custom short text on person. With index. Do not keep HTML tags                                                                                 | x       |
| consentPerson/person/personExtra/x\_person\_shorttext\_list       | listAny       | Contact - Extra short dropdown: Custom Short text dropdown field on person: black, white, transparent                                                                      | x       |
| consentPerson/person/personExtra/x\_person\_user\_relation        | associate     | Contact - Extra user relation: Custom person-user relation field                                                                                                           | x       |
| consentPerson/person/personExtra/x\_person\_category\_relation    | listAny       | Contact - Extra category relation: Custom person-category relation                                                                                                         | x       |
| consentPerson/person/personExtra/x\_person\_priority\_relation    | listAny       | Contact - Extra priority relation: Custom person-priority relation                                                                                                         | x       |
| consentPerson/person/personExtra/x\_person\_request\_relation     | stringorPK    | Contact - Extra request relation: Request relation on contact                                                                                                              | x       |
| consentPerson/person/personExtra/x\_person\_appointment\_relation | stringorPK    | Contact - Extra appointment relation: Appointment relation on person                                                                                                       | x       |
| consentPerson/person/personExtra/x\_person\_contact\_relation     | stringorPK    | Contact - Extra company relation: Company relation on contact                                                                                                              | x       |
| consentPerson/person/personExtra/y\_rental/id                     | int           | Contact - Rental - id: Displays the row's primary key (y\_rental)                                                                                                          | x       |
| consentPerson/person/personExtra/y\_rental/x\_start               | date          | Contact - Rental - Start rental: Start rental                                                                                                                              | x       |
| consentPerson/person/personExtra/y\_rental/x\_end                 | date          | Contact - Rental - End: End                                                                                                                                                | x       |
| consentPerson/person/personExtra/y\_rental/x\_amount              | int           | Contact - Rental - Amount: Number to rent. Default = 1                                                                                                                     | x       |
| consentPerson/person/personExtra/y\_rental/x\_contact             | stringorPK    | Contact - Rental - Renter: Company that rents equipment                                                                                                                    | x       |
| consentPerson/person/personExtra/y\_rental/y\_equipment/x\_name   | string        | Contact - Rental - Equipment - Name: Equpment name custom field. Cannot be null., show in table                                                                            | x       |
| consentPerson/person/personExtra/y\_car/id                        | int           | Contact - Car - id: Displays the row's primary key (y\_car)                                                                                                                | x       |
| consentPerson/consentPurpose/consentPurposeId                     | int           | Consent purpose - Consent purpose ID: Consent purpose ID                                                                                                                   | x       |
| consentPerson/consentPurpose/active                               | bool          | Consent purpose - Active:                                                                                                                                                  | x       |
| consentPerson/consentPurpose/key                                  | string        | Consent purpose - Purpose ID:                                                                                                                                              | x       |
| consentPerson/consentPurpose/name                                 | string        | Consent purpose - Purpose name: The name of the consent purpose                                                                                                            | x       |
| consentPerson/consentPurpose/tooltip                              | string        | Consent purpose - Description:                                                                                                                                             | x       |
| consentPerson/consentPurpose/privacyStatementDescription          | string        | Consent purpose - External privacy statement: Privacy statement                                                                                                            | x       |
| consentPerson/consentPurpose/privacyStatementUrl                  | string        | Consent purpose - External privacy statement URL: Privacy statement URL                                                                                                    | x       |
| consentPerson/consentPurpose/updatedBy                            | associate     | Consent purpose - Updated by: The user who last updated the data                                                                                                           |         |
| consentPerson/consentPurpose/updatedDate                          | date          | Consent purpose - Updated: The date/time the data was last updated in UTC.                                                                                                 | x       |
| consentPerson/consentPurpose/rank                                 | int           | Consent purpose - Rank                                                                                                                                                     | x       |

## Sample

```http! theme={null}
GET /api/v1/archive/ConsentPurpose?$select=consentPerson/person/personExtra/y_rental/y_equipment/x_name,consentPerson/person/personRegisteredBy,consentPerson/person/personDirectPhone/description
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: sv

```

See also: <see cref="T:SuperOffice.CRM.Services.IArchiveAgent">IArchiveAgent</see>.


## Related topics

- [SuperOffice.WebApi.Data.ConsentPurpose](/en/api/reference/webapi/SuperOffice.WebApi.Data.ConsentPurpose.md)
- [SuperOffice.WebApi.Data.ConsentPerson](/en/api/reference/webapi/SuperOffice.WebApi.Data.ConsentPerson.md)
- [consentpurpose](/en/api/mdo-providers/reference/consentpurpose.md)
- [ConsentPurpose table](/en/database/tables/consentpurpose.md)
- [Save Consent Purpose](/en/api/reference/restful/agent/list_agent/save-consent-purpose.md)
- [Delete Consent Purpose](/en/api/reference/restful/rest/list_consentpurpose/delete-consent-purpose.md)
