Hello
From previous workflow i have populated a line of data in my google sheet to a google doc.
Replacing worlds in google doc by items from google sheet, that’s done
Describe the issue/error/question
The challenge i have is that in my sheet i have few lines that i need to included with the same format
The Google Sheet datas
Titreprojet | etat | a_ouverte | a-retard |
---|---|---|---|
#MATRIX | Stagne | 0 | 45 |
#PESOS | A la baisse ⇩ | 1 | 12 |
#GED2023 | Stagne | 3 | 7 |
#CQI2022 | Stagne | 7 | 72 |
The Google doc template for the replication
{{titreprojet}}
Le compte rendu est aussi disponible ici : {{titreprojet}}
Statut du projet
{{etat1}}
Compte d’actions Retardés
Actions ouvertes en retard sur le planning prévisionnel En retard sur le planning initial {{a_ouverte}} {{a-retard}}
What is the error message (if any)?
The error is me
I don’t know how to do it to be honest
1/ N8N as node and jsscript that can do the trick ?
2/ Jsscript and html import ?
I have created an html file because I used to use a google script to populate with a loop similar entries to a gmail draft.
<! The title !>
<h2 style="line-height: 1.56; background-color: #ffffff; margin-top: 18pt; margin-bottom: 0pt; padding-bottom: 4pt;"><span lang="fr" style="font-size: 12pt; font-family: Comfortaa, cursive; color: #4a86e8; font-weight: 400;">{{titreprojet}}</span></h2>
<p style="line-height: 1.56; background-color: #ffffff; margin-top: 0pt; margin-bottom: 0pt;"><span lang="fr" style="font-size: 11pt; font-family: Comfortaa, cursive; color: #353744;">Le compte rendu est aussi disponible ici : {{titreprojet}}</span></p>
<p style="line-height: 1.56; background-color: #ffffff; margin-top: 0pt; margin-bottom: 0pt;"> </p>
<div align="left">
<! The Status Table for the project !>
<table style="border: none;"><colgroup><col style="width: 220px;" /></colgroup>
<tbody>
<tr>
<td style="border-width: 1pt; border-style: solid; vertical-align: top; background-color: #9bbb59;">
<p style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span lang="fr"><strong><span style="font-size: 14pt; font-family: Comfortaa, cursive;">Statut du projet</span></strong></span></p>
</td>
</tr>
<tr>
<td style="border-width: 1pt; border-style: solid; vertical-align: top;">
<p style="line-height: 1.2; text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span lang="fr" style="font-size: 11pt; font-family: Comfortaa, cursive; color: #353744;">{{etat1}}</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<! The table with details informations for the project !>
<table style="border: none; height: 113px; width: 82.3691%;"><colgroup><col style="width: 28.0936%;" /><col style="width: 17.3913%;" /><col style="width: 11.8729%;" /><col style="width: 8.86288%;" /><col style="width: 17.2241%;" /><col style="width: 15.5518%;" /></colgroup>
<tbody>
<tr style="height: 34pt;">
<td style="vertical-align: bottom; border: 1pt solid #353744;">
<p style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 11pt; font-family: Comfortaa, cursive;">Actions ouvertes en retard sur le planning prévisionnel</span></p>
</td>
<td style="vertical-align: bottom; border: 1pt solid #353744;">
<p style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 11pt; font-family: Comfortaa, cursive;">En retard sur le planning initial</span></p>
</td>
</tr>
<tr style="height: 22.75pt;">
<td style="border-width: 1pt 0.75pt 0.75pt; border-style: solid; border-color: #353744; vertical-align: bottom;">
<p style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10pt; font-family: Arial;">{{a_ouverte}}</span></p>
</td>
<td style="border-width: 1pt 0.75pt 0.75pt; border-style: solid; border-color: #353744; vertical-align: bottom;">
<p style="text-align: center; margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10pt; font-family: Arial;">{{a-retard}}</span></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p style="line-height: 1.56; background-color: #ffffff; margin-top: 0pt; margin-bottom: 0pt;"><span lang="fr" style="font-size: 11pt; font-family: Comfortaa, cursive;"> </span></p>
<h2 style="line-height: 1.56; background-color: #ffffff; margin-top: 0pt; margin-bottom: 4pt; padding-top: 18pt;"><span lang="fr" style="font-size: 10pt; font-family: Comfortaa, cursive; color: #404040; font-weight: 400;">{{commentaire projet}}</span></h2>
Please share the workflow
Share the output returned by the last node
The expected ouput is the google doc with the replication of the template for each line of the googlesheet what ever how many lines it has.
I will be more than happy to get this because doing it manually every week cost me times.
Thank you
Information on your n8n setup
- n8n version:0.182
- Database you’re using (default: SQLite): Google sheet
- Running n8n with the execution process [own(default), main]: own
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]:
**