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
0 Comments