Placeholder for Activites

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • conor
    Junior Member
    • Jan 2026
    • 2

    #1

    Placeholder for Activites

    Hi everyone,

    I am currently trying to set up a PDF export for Cases, but I've run into a bit of a roadblock.

    I need the export to include a complete overview of all related actions, such as phone calls, internal notes, and tasks. Unfortunately, I haven’t been able to find the correct placeholders to pull this activity data into the document.

    Does anyone know if these placeholders exist, or if there is a specific workaround to include the activity history in a PDF export?

    Any help would be greatly appreciated! Thanks!
  • victor
    Active Community Member
    • Aug 2022
    • 1169

    #2
    There is no separate Placeholder for Activities. However, you can add Placeholders for each of the entities that are part of Activities. For example, how can you display "name" and "duration" for Calls, whose Parent is our case.
    For this, each is used:

    Click image for larger version

Name:	image.png
Views:	0
Size:	33.1 KB
ID:	125620
    HTML Code:
    <p>
      {{#each calls}}
        Name: {{name}},<br>
        Duration: {{duration}}<br>
      {{/each}}
    </p>
    If the data is needed in a table, then it is worth using iterate attribute:

    Click image for larger version

Name:	image.png
Views:	0
Size:	46.3 KB
ID:	125621

    HTML Code:
    <table style="width: 100%;">
      <tbody>
        <tr iterate="{{calls}}">
          <td>{{name}}</td>
          <td>{{duration}}</td>
        </tr>
      </tbody>
    </table>
    More about this: https://docs.espocrm.com/user-guide/...#each-iterator.

    Comment

    Working...