---
title: FollowUpHistory
slug: oip-next/12uischekgyrygmzeby
createdAt: 2024-02-21T13:33:51.000Z
---

# FollowUpHistory

## Description

L'entité FollowUpHistory stocke l'historique des relances.

## Relations

### Ascendantes

| Entité  | Propriété       |
| ------- | --------------- |
| Project | followUpHistory |

### Descendantes

| Entité | Propriété |
| ------ | --------- |

## Liste des propriétés

| Nom       | Type     | Dernière version modifiée | Description                                                              | Getter                      | Setter                 | Deprecated |
| --------- | -------- | ------------------------- | ------------------------------------------------------------------------ | --------------------------- | ---------------------- | ---------- |
| createdAt | `Date`   |                           | Date de création de l'entité `FollowUpHistory`                           | getFollowUpHistoryCreatedAt | Lecture seule          | -          |
| createdBy | `String` |                           | Utilisateur à l'origine de la création de l'entité `FollowUpHistory`     | getFollowUpHistoryCreatedBy | Lecture seule          | -          |
| date      | `Date`   | 2.13.0                    | Date de la relance.                                                      | getFollowUpHistoryDate      | setFollowUpHistoryDate | -          |
| id        | `String` |                           | Identifiant unique de l'entité `FollowUpHistory`                         | getFollowUpHistoryId        | Lecture seule          | -          |
| type      | `String` | 2.13.0                    | Type de la relance.                                                      | getFollowUpHistoryType      | setFollowUpHistoryType | -          |
| updatedAt | `Date`   |                           | Date de modification de l'entité `FollowUpHistory`                       | getFollowUpHistoryUpdatedAt | Lecture seule          | -          |
| updatedBy | `String` |                           | Utilisateur à l'origine de la modification de l'entité `FollowUpHistory` | getFollowUpHistoryUpdatedBy | Lecture seule          | -          |

## Enums

Aucune enumération disponible pour cette entité.

## Exemple

```javascript
import { Entities } from '@fasstech/oip-core';
import { getFollowUpHistoryDate, getFollowUpHistoryType, getfollowUpHistoryId, setFollowUpHistoryDate, setFollowUpHistoryType } from '@fasstech/oip-core/entities/followUpHistory';
import { getProjectId } from '@fasstech/oip-core/entities/project';

(async () => {
  let ProjectEntity = await Entities('Project').get({ id: projectId });
  const FollowUpHistoryEntity = await Entities('FollowUpHistory').create();
  
  setFollowUpHistoryDate(new Date('2017-01-01'), FollowUpHistoryEntity);
  setFollowUpHistoryType('type', FollowUpHistoryEntity);
  
  ProjectEntity = await Entities('FollowUpHistory').save(ProjectEntity, FollowUpHistoryEntity);
  await Entities('Project').save(ProjectEntity);
  
  const ProjectEntityToTest = await Entities('Project').get({ id: getProjectId(ProjectEntity) });
  const FollowUpHistoryEntityToTest = await Entities('FollowUpHistory').get(ProjectEntityToTest, getFollowUpHistoryId(FollowUpHistoryEntity));
  
  getFollowUpHistoryDate(FollowUpHistoryEntityToTest); // new Date('2017-01-01')
  getFollowUpHistoryType(FollowUpHistoryEntityToTest); // 'type'
})();
```
