Repeating Slides

The Encodian population engine allows multiple slides to be created from repeating content within a JSON array. 

In order to access this functionality ensure the following advanced property is set to 'Yes'

 

Example JSON Data:

[
{
"name": "Mary",
"role": "Department Manager",
"startDate": "04/11/2017"
},
{
"name": "Gary",
"role": "Accountant",
"startDate": "06/03/2020"
},
{
"name": "Ruth",
"role": "Payroll Specialist",
"startDate": "21/10/2019"
}
]

There is no specific syntax for this, a simple template could look like the following.

This single slide and JSON produces the following 3 slide output:

 

Notes:

  • It is extremely important to note that this version of the action is expecting (and will only work with) a JSON array (defined by the contents within two square brackets [ ] as shown in the above example) this differs from the JSON input of this action if you were to select 'Multiple Slides = No' which uses a JSON object literal { }
  • However you will not be able to pass an array variable directly into the action. In order to get around this use the following expression to convert it to a String - my array was called 'People'
  • The template you pass into this action can only contain slides you expect to repeat; if you want to include a title slide or any other non repeating content this will need merged with the output in another action PowerPoint - Merge Files – Encodian Customer Help

 

 

 

 

 

Have more questions? Submit a request

4 Comments

  • 0
    Avatar
    ANDONI

    Hi Jo Hall,

    Is it possible to repeat more than one slide in one go? e.g. I would like to repeat slides 1 and 2 per item in one go.

    Thank you!

    Edited by ANDONI
  • 0
    Avatar
    Jo Hall

    Hi ANDONI

    To clarify I believe what you are asking is whether a template that looks like the below can repeat

    I tested this with the below JSON (with multiple slides set to 'Yes')

    [
    {
    "FirstSlide":  "FirstFirst" ,
    "SecondSlide": "FirstSecond"
    },
    {
    "FirstSlide":  "SecondFirst" ,
    "SecondSlide": "SecondSecond"
    }
    ]

    And received 4 slides as output

     

     

     

  • 0
    Avatar
    ANDONI

    Hi Jo Hall,

    Almost! What I am asking is more like this (imagine that I have a json file with "n" tests, and per test the slides 1 and 2 have to be filled):

    Group 1 (test nº 1): Slide 1 + 2

    Group 2 (test nº 2): Slide 1 + 2

    (...)

    Group n (test n): Slide 1 + 2

     

    Final pttx file slides would be Group 1, Group 2, ..., Group n

  • 0
    Avatar
    Jo Hall

    ANDONI

    I'm not sure i'm quite clear on what you are saying.

    Can you please email (support@encodian.com) a sample json and a mock up of what the final powerpoint should look like and I will have a look. 

Please sign in to leave a comment.
Powered by Zendesk