Articles in this section

How to dynamically insert slides from the Library in a presentation

This article explains how to insert slides from the Library through smart fields so it can be automatically inserted when generating the presentation. 

  Prerequisites

  Important

  • The Slide(s) smart field is only available in PowerPoint.
  • Slide insertion is only supported with the Presentations and is not supported with Slides and Slide elements.
  • Slide insertion is not supported for the Default presentation template that is uploaded in the Library Configuration section.

What is slide insertion?

There are two different types of slides that can be inserted into a presentation: 

  • Static slides: the slides do not contain any questions in the response form. When dynamically inserting static slides into a presentation, the end-user will be prompted with the presentation response form only.
  • Dynamic slides: the slides do contain smart fields and at least one question in the response form. When dynamically inserting dynamic slides into a presentation, the end-user will be prompted with a response form gathering both the presentation and the slides response forms. The Slide placeholder displayed in the presentation response form will dictate where the slide response form  should appear for the end-user.

      Important

    To show the form questions of the inserted slide(s), the slide(s) must be inserted static (fixed asset ID) or dynamically by a dropdown or checkbox. When a flexible dropdown is used then the form questions of the inserted slide(s) will not be shown.

Furthermore, there are two different ways of inserting slides into a presentation, either by using a static or a dynamic insertion:

  • Static insertion: linking a specific presentation from the Slides Library to be inserted in the presentation. This can be achieved by directly using the asset ID of the presentation from the Slides Library in the Slide(s) smart field. (See example "Inserting slides using static insertion in a presentation in PowerPoint" below).
  • Dynamic insertion: linking a dropdown question in the response form where the user can pick an answer, which will insert the desired slides in the presentation. This can be achieved by creating a data source containing the options that should be displayed to the end-users in the response form and specifying the asset ID inside the data source. (See example "Inserting slides using dynamic insertion in a presentation in PowerPoint" below).

When working with slides insertion, the asset ID of the presentation from the Slides Library will be necessary. The asset ID can be found in the Admin Center, by navigating to the Slides Library, finding the relevant slide, clicking on the ellipsis menu, and using Copy asset ID.

SlideInsertion_CopyAssetID.png

  Note

  • Note that all the slides existing in the presentation from the Slides Library will be inserted in the presentation. If a single slide should be inserted dynamically, it must be uploaded as a presentation containing the single slide in the Slides Library.
  • Note that when the presentation is updated, the dropdown field is not shown in the response form and therefor it is not possible to select another slide. This is by design.

How to insert slides from the Library into a presentation with smart fields

When building a smart template, the Slide(s) smart field can be used to insert slides into a presentation. To create a Slide(s) smart field it is necessary to specify the slides that should be inserted. The slides can be inserted statically or dynamically using asset ID's inside a presentation. Creating a Slide(s) smart field can be achieved following these steps:

  1. In Template Designer, navigate to the Template tab.
  2. Select the location (in the thumbnail slides shown on the left) where the slides should be inserted. A placeholder slide will be generated below the slide currently selected.
  3. Click + Add smart field.
    Note: this step does not apply if you are adding the very first smart field in the template.
  4. Click Slide(s).
    Note: if this option is not visible you have to click More first.
    SlideInsertion_SelectSlidesSmartField.png
  5. Enter a Display name. The display name will be displayed in the Template tab once the smart field has been added.
  6. Enter the Asset Id:
    • For a static insertion, copy the asset ID from the presentation in the Slides Library into the Asset Id field.
      SlideInsertion_AddSlidesSmartField.png
    • For a dynamic insertion, create the desired binding linked to the response form using the binding syntax.
  7. When creating a slide(s) smart field a slide placeholder will be automatically inserted in the response form. The placeholder defines where the slide(s) response form will appear for the end-user:
    • By default a new placeholder will be generated.
    • If a placeholder already exists in the response form, it will be selectable from the list.
      It can be disregarded if the inserted slide does not contain a response form.

        Note

      A new placeholder will be named 'Placeholder 1', 'Placeholder 2' etc., but can be renamed on the Form tab in the Question title field. For example rename 'Placeholder 1' to 'Disclaimer' if that is the content of the slide.
      SlideInsertion_FormTabPlaceholder.png

  8. Click Add to template.
    • The smart field will be inserted into the template and will be displayed in the Template tab.
    • A placeholder slide will be inserted into the presentation. This placeholder slide will be replaced by the inserted slides when generating the presentation.

        Important

      • The Slide(s) smart field is not supported with the document content updater.
      • Slides containing custom table formatting are not supported with the Slide(s) smart field.

The result would look like this:

SlideInsertion_result.png

Slide(s) smart field examples

Example 1 - dropdown

In this example a slide is inserted in a PowerPoint presentation using dynamic insertion, using a dropdown.

Create a data source 'ProposalPowerPointIndustries' with a column AssetID and some items. It would look like this:

SlideInsertion_Example1_DataSource.png

  Important

The column in the data source containing the Asset Id (in the example this is the 'AssetID' column) needs to be of type Text in the Schema.

Create a Dropdown question in the response form using "Industry" as the Reference Name, linking to 'ProposalPowerPointIndustries' data source, and displaying the Name column.

SlideInsertion_Example1_Dropdown.png

The data source itself contains slide asset IDs in the 'AssetID' column. Therefore, we will be using {{Form.Industry.AssetID}} as a binding in the Asset Id field of the Slide(s) smart field. 

SlideInsertion_Example1_SlidesSmartField.png

The inserted slides do not contain a response form so the placeholder will be disregarded. 

When generated by the end-user, the slide inserted into the presentation, replacing the placeholder slide, will depend on the answer provided for the 'Industry' question of the response form:

Industry Banking Industry Consulting
SlideInsertion_Example1_Select.png

SlideInsertion_Example1_Result.png
Example 2 - checkbox

In this example a slide is inserted in a PowerPoint presentation using dynamic insertion, using a checkbox.

A slide is created (with a question), then a template with a checkbox that will insert the slide if the checkbox is ticked.

Create an 'About Us' slide

Create the slide following the steps below.

  1. Create a slide. On the Form tab click + Add question then use these values:
    • Type: 'Text'.
    • Question title: 'Company Name'.
    • Reference name: 'Company_Name'.
  2. Click + Add to form.
  3. In the template add a shape. Select the shape, then on the Template tab expand Form responses, select the 'Company_Name' form field and click Add to template.
  4. Optional: while the shape is selected, change the font size, font color and background color.
  5. Add another shape with some 'About us' text. The result looks like this:
    SlideInsertion_Example2_SlideAbout.png
  6. Save the (slide) template as 'About us.pptx' and upload it to the Slides library in the Admin Center.
  7. For the slide get the asset ID (you'll need it when creating the template), by clicking the ellipsis button and then Copy asset ID and save it (temporary) to e.g. Notepad.
    SlideInsertion_Example2_CopyAssetID.png

Create an 'Annual Meeting' template

Create the template following the steps below.

  1. Create a template. On the slide type 'Welcome to our annual meeting'. The result looks like this:
    SlideInsertion_Example2_Presentation.png
  2. On the Form tab click + Add question then use these values:
    • Type: 'Checkbox'.
    • Question title: 'Show 'About us' slide'.
    • Reference name: 'Show_About_us_slide'.
  3. Click Add to form.
  4. On the Template tab click More, then click Slide(s). Then use these values:
    • Display name: 'About Us'.
    • Asset Id: {{IfElse(Form.Show_About_us_slide, "1105476951677599798", "")}}.
    • Placeholder: 'Generate new' (default).

        Note

      • TThe asset ID '1105476951677599798'is the value found in step 7 from creating the slide (see above).
      • When only the value '1105476951677599798' is placed in the Asset Id field, the slide would always be inserted. In this example the slide only needs to be inserted when the checkbox is ticked, so that's why an IfElse() function is used.
  5. The result looks like this:
    SlideInsertion_Example2_Smart field.png
  6. Click Add to template. The result looks like this:
    SlideInsertion_Example2_Result.png
  7. To see what the result is when a user creates a presentation, click Preview form on the Form tab:
    SlideInsertion_Checkbox.gif
  8. Save the template as 'Annual Meeting.pptx' and upload it to the Presentations library in the Admin Center.
  9. In the presentation the result looks like this (with Update Presentation) when the checkbox was unticked when the presentation was initially created:
    SlideInsertion_Example2_Result1.png

      Important

    If the checkbox is ticked after creating the presentation, the question 'Company name' will be shown. However, when the presentation is updated, the 'About Us' slide will not be added to the presentation. This is by design.

    In the presentation the result looks like this (with Update Presentation) when the checkbox was ticked when the presentation was initially created:
    SlideInsertion_Example2_Result2.png

      Important

    • If the checkbox now is unticked and the presentation is updated, the 'About Us' slide will not be removed from the presentation. This is by design.
    • If the checkbox remains ticked and value of the 'Company name' is changed, the value in the slide will be updated.

Best practice using slide insertion

In this article is explained what the best practice is regarding the Slide Master and Slide Layouts when using Slide insertion.

conditions microsoft purview information protection data mapping custom chart binding tech_role
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.