UiPath.Presentations.Activities.ReplaceShapeWithMedia
Replaces a placeholder with a media element with the same name. Use to populate a placeholder in a newly inserted slide with media or to replace media in an existing presentation. This activity must be added inside a Use PowerPoint Presentation activity.
Configuring the Activity
In the Body of the Activity
- Presentation - Click Plus
on the right side of the field, and then select the presentation file where to insert the media.
- Slide number - Click Plus
on the right side of the field, then select the presentation file and the slide where to insert the media.
Alternatively, use one of the other options in the menu to indicate the slide number:- Data from the Project Notebook or a parent Excel file. For example, select a cell in an Excel file to use the value in that cell.
- Ask when run - Prompt for the slide number when the project is executed.
- Number - Enter the slide number.
- Use Saved Value - Select a numeric value that you previously saved for later use in the project.
- Open in Advanced Editor - Enter a VB expression.
- Content placeholder - Click Plus
on the right side of the field, then select the presentation file, the slide, and then select the name of the placeholder where to insert the media.
Alternatively, use one of the other options in the menu to indicate the placeholder name:- Data from the Project Notebook, a parent Excel file or Outlook account. For example, select a cell in an Excel file to use the value in that cell.
- Ask when run - Prompt for the name when the project is executed.
- Paste from clipboard - Paste a value that you previously copied to the clipboard in the project.
- Text - Enter the name in the Text Builder.
- Use Saved Value - Select a value that you previously saved for later use in the project.
- Open in Advanced Editor - Enter a VB expression.
- Image/Video file- Click Browse
next to the field, and then browse to and select the image, video, or audio file to add.
Alternatively, you can use one of the other options in the menu to indicate the path to the file to add:- Data from the Project Notebook, a parent Excel file or Outlook account. For example, select a cell in an Excel file that contains a file path.
- Ask when run - Prompt for the file path when the project is executed.
- Paste from clipboard - Paste a file path value that you previously copied to the clipboard in the project.
- Use Saved Value - Select a file path value that you previously saved for later use in the project.
- Open in Advanced Editor - Enter a VB expression.
In the Properties Panel
Common
- DisplayName - The name displayed for the activity in the Designer panel.
Input
- See the options in the body of the activity.
Misc
- Private - If selected, the data used in the activity is not logged by StudioX.
Updated 4 months ago