External Calendar Configuration
If the source of the data is external to Deepser. Through this section, for example, you can intervene to configure a calendar whose data source is an external calendar (for example your Google calendar).
For External calendar the following section should be configured:
Calendar
In the calendar module, you can name the calenda, define the “Type” as Google Calendar or Outlook Calendar, in “OAuth Client” you can select the Client you previously created, and choose the desired calendar in “Unique Id”.
(To view a complete example, you can check the google calendar configuration example accessible here)
Source
External source is used to link deepser models like operation, activity or task with external calendars. On the external source multiselect field, you can choose an existing source, or create a new one.
Field | Description |
Name | On this field, you can set a name for the source. |
Model | Select field where you can choose the model you want to use on the calendar. |
Status | Select field where you can choose to enable or disable the source. |
Prepare Collection | With this query builder you can filter the collection chosen based on their fields. |
Upload Field Config | With this scripting area, you assign values from the model as calendar events. |
Download Field Config | With this scripting area, you can create models with values from the calendar events. |
Upload Field Config
/*event variable is an array with keys of name, description, start and end
This keys will be mapped to the model values.
*/
$event['name'] = $model->getTitle();
$event['description'] = $model->getDescription();
$event['start'] = $model->getCreatedAt();
$event['end'] = $model->getDueDate();
Download Field Config
/* model variable corresponds to the chosen model and its data is set by the calendar event */
$model->setTitle($event['name']);
$model->setDescription($event['description']);
$model->setCreatedAt($event['start']);
$model->setDueDate($event['end']);