34
edits
Lpierson002 (talk | contribs) mNo edit summary |
Lpierson002 (talk | contribs) (Layout modification) |
||
| Line 50: | Line 50: | ||
These fiels are the first three one on the picture below : | These fiels are the first three one on the picture below : | ||
* '''Credential''' to connect with : this is where you can set your `credentials` as explained just before, | *'''Credential''' to connect with : this is where you can set your `credentials` as explained just before, | ||
* '''Resource''' : this is where you just which module of Dolibarr it will affect, there are 4 options : Calendar, Task, Document and Custom API Call (use this one only if you know what you are doing), | *'''Resource''' : this is where you just which module of Dolibarr it will affect, there are 4 options : Calendar, Task, Document and Custom API Call (use this one only if you know what you are doing), | ||
* '''Operation''' : this is in this field where you select this kind of operation you want to do on this specific resource, for now it only support creation operations. | *'''Operation''' : this is in this field where you select this kind of operation you want to do on this specific resource, for now it only support creation operations. | ||
===Creating a Calendar Event=== | ===Creating a Calendar Event=== | ||
The first node is used to create an event in the calendar in Dolibarr. | The first node is used to create an event in the calendar in Dolibarr. | ||
[[File:Add event n8n.png|center|thumb|Add event n8n]] | |||
If you have selected the '''Create an Event''' and have alreary set your credentials the first three fields will be already completed. | |||
If you have selected the | |||
For the next fields : | For the next fields : | ||
* '''Event Name''' corresponds with the '''Label''' field in Dolibarr interface (this field is required), | |||
* '''Description''' corresponds with the '''Description''' field (this field is optional) | |||
* '''Event Type''' corresponds with the '''Type''' field, three options are available : '''Intervention on site''', '''Meetings''' and '''Reception of Email''' (this field is required), | |||
* '''Beginning Date of Event''' corresponds with the left date in the '''Date''' field (this field is required), | |||
* '''End Date of Event''' corresponds with the right date in the '''Date''' field (this field is required), | |||
* '''Email From''' is not corresponding to any field for now on Dolibarr but since this field is present in Dolibarr AP, it is possible that is the next updates a dedicated Mail Sender field will be available on Dolibarr interface (this field is optional), | |||
* '''Email Subject''' is also not corresponding to any field for now on Dolibarr and as the the previous one we can expect to the a dedicated field appears is the next updates (this field is optional). | |||
[[File:Add event dolibarr.png|center|thumb|Add event dolibarr]] | |||
====Creating an event in Calendar when an event is created in Google Calendar==== | ====Creating an event in Calendar when an event is created in Google Calendar==== | ||
To produce this use case you will have to connect a | To produce this use case you will have to connect a '''Google Calendar Trigger node''' on the '''Dolibarr node'''. | ||
The | The '''Google Calendar Trigger node''' documentation can be found here https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.googlecalendartrigger/. | ||
Once you have set up the | Once you have set up the '''Google Calendar Trigger node''' you can connect it to the '''Dolibarr Create an event node'''. | ||
 |  | ||
[[File:Google calendar use case.png|center|thumb|Google calendar use case]] | |||
One possible configuration to have the wanted informations is to enter to same informations as the screenshot. | One possible configuration to have the wanted informations is to enter to same informations as the screenshot. | ||
Be sure to select | Be sure to select '''Expression''' mode on fields that use the previous node informations. | ||
You can either type or drag and drop from the left window which field you want to have from the Google Calendar Event. | You can either type or drag and drop from the left window which field you want to have from the Google Calendar Event. | ||
| Line 92: | Line 92: | ||
Here : | Here : | ||
- | - <code>json.summary</code> correspond to the Google Caldendar Name, | ||
- `{{$json.htmlLink }}` correspond to the Google Caldendar URL (doing this is optional, description can be empty as explained before, entering the URL only facilitate the Google Calendar event access from Dolibarr), | - `{{$json.htmlLink }}` correspond to the Google Caldendar URL (doing this is optional, description can be empty as explained before, entering the URL only facilitate the Google Calendar event access from Dolibarr), | ||
edits