# Using Presentations coded automation APIs

> To use the Presentations coded automation APIs, apply the following steps:

To use the Presentations coded automation APIs, apply the following steps:

1. Download the activity package.
2. Create a **Coded Workflow**.
3. Call the `powerpoint.UsePowerPointPresentation` method to retrieve the handle of a PowerPoint file.
4. Use the handle to perform actions. With the Presentations coded automation, you should be able to perform the same operations as with the Presentations modern activities in a `.xaml` file.

   :::note
   * The Presentations activities are implemented in the Coded service as extension methods for the handle. To check all the available extension methods, type `handle_name.` and then **Ctrl** + **Space**.
   * `ConstClass2` - Contains string representations of different slide format options. For more details, refer to the [What is a slide layout?](https://support.microsoft.com/en-us/office/what-is-a-slide-layout-99da5716-92ee-4b6a-a0b5-beea45150f3a) page.
   :::
   :::important
   There is a known limitation that the PowerPoint files must be closed when executing a Presentations coded workflow.
   :::
