# Invio ciclo PDFMonkey

**URL:** <https://community.glideapps.com/t/invio-ciclo-pdfmonkey/82787>\
**Category:** Ask for Help\
**Created:** [June 27, 2025, 7:37pm UTC](https://community.glideapps.com/t/invio-ciclo-pdfmonkey/82787 "2025-06-27T19:37:41Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoda64](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@Yoda64](https://community.glideapps.com/u/Yoda64)\
**Post date:** [June 27, 2025, 7:37pm UTC](https://community.glideapps.com/t/invio-ciclo-pdfmonkey/82787/1 "2025-06-27T19:37:41Z")

</div>

Sorry if I’m still here to take advantage of your knowledge but unfortunately I have two problems:  
I wanted to create a PDF with PDFMonkey integration where I have a series of rows divided into 4 tables depending on some fields  
Problem 1:  
when I send a boolean field glide sends it as a string  
Problem 2 (even if it could be solved when the first is solved)  
Glide only sends me the first row of data  
Do you have any advice? Should I leave integration alone and go through Make?Thanks  
Monkey’s json test works perfectly

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 28, 2025, 12:07am UTC](https://community.glideapps.com/t/invio-ciclo-pdfmonkey/82787/2 "2025-06-28T00:07:18Z")

</div>

> [@Yoda64](#):
>
> when I send a boolean field glide sends it as a string

I think this has been a thing for a while, I don’t typically send booleans but I can confirm it sends strings when I use JSON arrays.

It shouldn’t be a big problem for you though. You can assign a new variable based on the input variable, something like this.

```auto
{% if input_variable == "true" %}
  {% assign is_active = true %}
{% else %}
  {% assign is_active = false %}
{% endif %}

```

> [@Yoda64](#):
>
> Glide only sends me the first row of data

That shouldn’t be the case, you should be able to send JSON arrays over, but you have to parse the input inside PDFMonkey before being able to work with it as an array. Can you show me how you’re configuring it?

---

<div class="post-metadata">

**Author:** ![Yoda64](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@Yoda64](https://community.glideapps.com/u/Yoda64)\
**Post date:** [June 28, 2025, 3:43pm UTC](https://community.glideapps.com/t/invio-ciclo-pdfmonkey/82787/3 "2025-06-28T15:43:21Z")

</div>

```auto
{% assign pranzo = menu | where: "Pasto", "Pranzo" %}
{% assign cena = menu | where: "Pasto", "Cena" %}
{% assign cena_turno2 = menu | where: "Secondo_Turno", true %}
{% assign colazione = menu | where: "Pasto", "Colazione" %}

<!-- PRANZO -->
<h2>PRANZO</h2>
<table border="1" cellspacing="0" cellpadding="5">
  <thead>
    <tr>
      <th>Nome</th>
      <th>Primo</th>
      <th>Secondo</th>
      <th>Contorno</th>
      <th>Pizza</th>
      <th>Insalatona</th>
      <th>Note</th>
    </tr>
  </thead>
  <tbody>
    {% for persona in pranzo %}
      <tr>
        <td>{{ persona.Nome }}</td>
        <td>{{ persona.Primo }}</td>
        <td>{{ persona.Secondo }}</td>
        <td>{{ persona.Contorno }}</td>
        <td>{{ persona.Pizza }}</td>
        <td>{{ persona.Insalatona }}</td>
        <td>{{ persona.Note }}</td>
      </tr>
    {% endfor %}
  </tbody>
</table>

<div style="page-break-after: always;"></div>

<!-- CENA -->
<h2>CENA</h2>
<table border="1" cellspacing="0" cellpadding="5">
  <thead>
    <tr>
      <th>Nome</th>
      <th>Primo</th>
      <th>Secondo</th>
      <th>Contorno</th>
      <th>Pizza</th>
      <th>Insalatona</th>
      <th>Note</th>
    </tr>
  </thead>
  <tbody>
    {% for persona in cena %}
      {% if persona.Secondo_Turno != true and persona.Secondo_Turno != "true" %}
        <tr>
          <td>{{ persona.Nome }}</td>
          <td>{{ persona.Primo }}</td>
          <td>{{ persona.Secondo }}</td>
          <td>{{ persona.Contorno }}</td>
          <td>{{ persona.Pizza }}</td>
          <td>{{ persona.Insalatona }}</td>
          <td>{{ persona.Note }}</td>
        </tr>
      {% endif %}
    {% endfor %}
  </tbody>
</table>

<div style="page-break-after: always;"></div>

<!-- CENA – SECONDO TURNO -->
<h2>CENA – SECONDO TURNO</h2>
<table border="1" cellspacing="0" cellpadding="5">
  <thead>
    <tr>
      <th>Nome</th>
      <th>Primo</th>
      <th>Secondo</th>
      <th>Contorno</th>
      <th>Pizza</th>
      <th>Insalatona</th>
      <th>Note</th>
    </tr>
  </thead>
  <tbody>
    {% for persona in cena_turno2 %}
      <tr>
        <td>{{ persona.Nome }}</td>
        <td>{{ persona.Primo }}</td>
        <td>{{ persona.Secondo }}</td>
        <td>{{ persona.Contorno }}</td>
        <td>{{ persona.Pizza }}</td>
        <td>{{ persona.Insalatona }}</td>
        <td>{{ persona.Note }}</td>
      </tr>
    {% endfor %}
  </tbody>
</table>

<div style="page-break-after: always;"></div>

<!-- COLAZIONE -->
<h2>COLAZIONE</h2>
<table border="1" cellspacing="0" cellpadding="5">
  <thead>
    <tr>
      <th>Nome</th>
      <th>Caffetteria</th>
      <th>Succo</th>
      <th>Colazione</th>
      <th>Gusto</th>
      <th>Note</th>
    </tr>
  </thead>
  <tbody>
    {% for persona in colazione %}
      <tr>
        <td>{{ persona.Nome }}</td>
        <td>{{ persona.Caffetteria }}</td>
        <td>{{ persona.Succo }}</td>
        <td>{{ persona.Colazione }}</td>
        <td>{{ persona.Gusto }}</td>
        <td>{{ persona.Note }}</td>
      </tr>
    {% endfor %}
  </tbody>
</table>

```

---

<div class="post-metadata">

**Author:** ![Yoda64](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@Yoda64](https://community.glideapps.com/u/Yoda64)\
**Post date:** [June 28, 2025, 3:45pm UTC](https://community.glideapps.com/t/invio-ciclo-pdfmonkey/82787/4 "2025-06-28T15:45:41Z")

</div>

```auto
{
      "Nome": "Giulia Verdi",
      "Pasto": "Cena",
      "Primo": "Pasta al Pomodoro",
      "Secondo": "Cotoletta",
      "Contorno": "Patate",
      "Pizza": "Margherita",
      "Insalatona": "Tonno",
      "Caffetteria": "Cappuccino",
      "Succo": "Mela",
      "Colazione": "Cornetto",
      "Gusto": "Tradizionale",
      "Note": "Ben cotta",
      "Secondo_Turno": true
    },
    {
      "Nome": "Marco Neri",
      "Pasto": "Pranzo",
      "Primo": "Pasta al Pomodoro",
      "Secondo": "",
      "Contorno": "Zucchine",
      "Pizza": "",
      "Insalatona": "Con Tonno",
      "Caffetteria": "Caffè",
      "Succo": "Arancia",
      "Colazione": "",
      "Gusto": "",
      "Note": "",
      "Secondo_Turno": false
    },
    {
      "Nome": "Sofia Bianchi",
      "Pasto": "Pranzo",
      "Primo": "Penne Arrabbiata",
      "Secondo": "",
      "Contorno": "",
      "Pizza": "Margherita",
      "Insalatona": "Vegetariana",
      "Caffetteria": "",
      "Succo": "Mela",
      "Colazione": "",
      "Gusto": "Vegetariano",
      "Note": "Senza sale",
      "Secondo_Turno": false
    }
  ]
}

```

Sorry if I’m messing up a bit but I’m a beginner and I’m trying to learn as much as possible. On Monkey everything works but when I send the data from glide first it sends me only one row second the table doesn’t fill up. If I copy and paste the data sent from glide on the monkey test it works. I’m going crazy

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 29, 2025, 12:41am UTC](https://community.glideapps.com/t/invio-ciclo-pdfmonkey/82787/5 "2025-06-29T00:41:00Z")

</div>

How are you configuring that variable in the PDFMonkey integration? Can you show me that as well?

In the logs, you can also see how Glide sends the variable to PDFMonkey. There should be an extra parse for JSON arrays if you’re doing it that way, but I want to see if you’re configuring the variable correctly first.

---

<div class="post-metadata">

**Author:** ![Yoda64](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@Yoda64](https://community.glideapps.com/u/Yoda64)\
**Post date:** [June 29, 2025, 6:34pm UTC](https://community.glideapps.com/t/invio-ciclo-pdfmonkey/82787/6 "2025-06-29T18:34:52Z")

</div>

Thank you for your help but I think I will have to give up (maybe I’m too old for these things) I’ve been trying for days both directly from glide and from google sheet with Make but unfortunately I can’t get anywhere. The PDFMONKEY configuration HTML works perfectly with the json test but I got to that point and then total darkness. 🆘 At this point I could share the google sheet, the html and the json with someone who can create the various phases with Make to create pdf with MONKEY so maybe I can understand something. Thanks 🙏

 ![Screenshot 2025-06-29 214834](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/8/68af26050ab27084ea9f401dfc152664903c93e1.png)  
directly from glide

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [June 30, 2025, 1:02am UTC](https://community.glideapps.com/t/invio-ciclo-pdfmonkey/82787/7 "2025-06-30T01:02:58Z")

</div>

That looks like you’re only passing info from the “current row” to PDFMonkey.

Assuming you want to pass multiple rows, you should:

- Create a JSON structure for each row.
- Have a relation/query to get all the related rows.
- Have a joined list + template column to construct the JSON array. The output should look like this:

```auto
[
  {
    "Nome": "Mario Rossi",
    "Pasto": "Pranzo",
    "Primo": "Pasta al Pomodoro",
    "Secondo": "Pollo",
    "Contorno": "Insalata",
    "Pizza": "",
    "Insalatona": ""
  },
  {
    "Nome": "Luca Bianchi",
    "Pasto": "Cena",
    "Primo": "Risotto",
    "Secondo": "Pesce",
    "Contorno": "Patate",
    "Pizza": "Margherita",
    "Insalatona": ""
  },
  {
    "Nome": "Giulia Verdi",
    "Pasto": "Colazione",
    "Primo": "",
    "Secondo": "",
    "Contorno": "",
    "Pizza": "",
    "Insalatona": "",
    "Caffetteria": "Cappuccino",
    "Succo": "Arancia",
    "Colazione": "Cornetto",
    "Gusto": "Cioccolato",
    "Note": ""
  },
  {
    "Nome": "Anna Neri",
    "Pasto": "Cena",
    "Primo": "Gnocchi",
    "Secondo": "Carne",
    "Contorno": "Verdure",
    "Pizza": "",
    "Insalatona": "Mista",
    "Secondo_Turno": true,
    "Note": "Vegetariana"
  }
]

```

Then, pass that as a single variable to PDFMonkey. Parse it over there like this, in my case this was a table and the example assumes the JSON array is named “orders”.

```auto
{% assign parsed_orders = orders | parse_json %}

{% for item in parsed_orders %}
<tr>
  <td>{{ item.Nome }}</td>
  <td>{{ item.Pasto }}</td>
  <td>{{ item.Primo }}</td>
  <td>{{ item.Secondo }}</td>
  <td>{{ item.Contorno }}</td>
  <td>{{ item.Pizza }}</td>
  <td>{{ item.Insalatona }}</td>
  <td>{{ item.Caffetteria }}</td>
  <td>{{ item.Succo }}</td>
  <td>{{ item.Colazione }}</td>
  <td>{{ item.Gusto }}</td>
  <td>{{ item.Note }}</td>
  <td>{{ item.Secondo_Turno }}</td>
</tr>
{% endfor %}

```

---

<div class="post-metadata">

**Author:** ![Yoda64](https://avatars.discourse-cdn.com/v4/letter/y/c2a13f/32.png) [@Yoda64](https://community.glideapps.com/u/Yoda64)\
**Post date:** [July 1, 2025, 6:39pm UTC](https://community.glideapps.com/t/invio-ciclo-pdfmonkey/82787/8 "2025-07-01T18:39:31Z")

</div>

Hi, after several tests and sleepless nights I managed to create the PDFs using Make PdfMonkey and taking the data directly from the Google Sheet (for me it’s a great achievement) now I ask you if it’s possible to create a page in Glide where I insert the date of the meals I want, fill in the tables and create a URL for me to read the PDF and print it. In other words I would like to be able to do everything directly from Glide. Is it feasible?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [July 2, 2025, 12:26am UTC](https://community.glideapps.com/t/invio-ciclo-pdfmonkey/82787/9 "2025-07-02T00:26:19Z")

</div>

Yeah that’s basically what the PDFMonkey integration is for. Please follow my suggestions above, and also, migrate to Glide Tables if possible. It’s better for your app’s performance, and also your updates count.
