Manage Related Tables and Scripted Elements forms
Manage the Related Tables and Scripted Elements components that are required to create a Microsoft PowerPoint template.
Before you begin
Role required: sn_ppt_export.ppt_admin
Procedure
Navigate to All > PowerPoint Management > PowerPoint Report Types.
Select a parent table record, for example, Project report
pm_project.
| To manage Related Tables | You can add a custom remote table or a child from the parent table.1. In the Related Tables related list, select New. On the Related tables form, fill the fields. For a description of the field values, see Related Tables form.
|
| To manage Scripted Elements |
|
To configure a Script component, specify the script logic to generate dynamic content in the template.
Script components allow you to include calculated or dynamically generated content in your PowerPoint template. Use scripts when the built-in Field, Table, or Text component types do not meet your requirements.
Example: To display a formatted project health status:
(function() { var gr = new GlideRecord('pm_project'); gr.get(current.getValue('sys_id')); var health = gr.getValue('health'); if (health == 'green') return 'On Track'; else if (health == 'yellow') return 'At Risk'; else return 'Off Track'; })()Note: Verify the available scripting API and context variables with your ServiceNow administrator. Script components execute server-side and have access to the current record context.
Select Update.
Parent Topic:Configuring Export to PowerPoint