SAP Help Home SAP Intelligent RPA Help Portal SAP Intelligent RPA Community

Module - Google Slides

Activities for Interacting with Google Slides.

Activities

Create Presentation (Google Slides)

Create a presentation in Google Slides.


Technical Name Type Minimal Agent Version
createPresentation asynchronous WIN-2.0.0

Input Parameters:

Name Type Attributes Default Description
title string optional The title of the presentation that will be created.
timeout number optional Timeout for the activity. The default is 30000ms.

Output Parameters:

Name Type Description
presentationDetails irpa_googleworkspace.presentationDetails Parameter returning the details of the newly created presentation,( presentation ID, title, and revision ID).

Errors:

Error Class Package Description
SequenceError irpa_core Thrown if this activty is used without any authorization activity.
GoogleSheetsError irpa_googleworkspace Thrown if a call to the google slide api fails.
InvalidArgument irpa_core Thrown if this activty is used without the GoogleDriveScope.
Timeout irpa_core Thrown if the activity times out.
Error irpa_core Generic Error


Get Presentation Details (Google Slides)

Retrieve the details of a Google presentation.


Technical Name Type Minimal Agent Version
getPresentationDetails asynchronous WIN-2.0.0

Input Parameters:

Name Type Attributes Default Description
presentationId string mandatory ID of the presentation for which you want to get the details.
timeout number optional Timeout for the activity. The default is 30000ms.

Output Parameters:

Name Type Description
result any True if successful otherwise throws a Google error.

Errors:

Error Class Package Description
GoogleSlidesError irpa_googleworkspace Thrown if a call to the google slides api fails.
SequenceError irpa_core Thrown if this activty is used without any authorization activity.
InvalidArgument irpa_core Thrown if this activty is used without the GoogleDriveScope.
Timeout irpa_core Thrown if the activity times out.
Error irpa_core Generic Error


Get List of Presentations (Google Slides)

Retrieve a list of presentation based on a specified query.


Technical Name Type Minimal Agent Version
listPresentations asynchronous WIN-2.0.0

Input Parameters:

Name Type Attributes Default Description
driveId string optional The ID of the Google Drive from which you want to retrieve a list of presentations. If you don't set this parameter, 'My Drive' files is fetched.
query string optional Search query to retrieve the list of presentations. This query is like the other search queries in Google Drive.
timeout number optional Timeout for the activity. The default is 30000ms.

Output Parameters:

Name Type Description
metaDatas Array.<irpa_googleworkspace.googleDriveContentMetadata> Parameter returning the list of presentations from a Google Drive that the user has access to.

Errors:

Error Class Package Description
GoogleDriveError irpa_googleworkspace Thrown if a call to the google drive api fails.
SequenceError irpa_core Thrown if this activty is used without any authorization activity.
InvalidArgument irpa_core Thrown if this activty is used without the GoogleDriveScope.
Timeout irpa_core Thrown if the activity times out.
Error irpa_core Generic Error


Add Slide (Google Slides)

Add a slide to a Google presentation.


Technical Name Type Minimal Agent Version
addSlide asynchronous WIN-2.0.0

Input Parameters:

Name Type Attributes Default Description
presentationId string mandatory ID of the presentation in which you want to add a slide.
index number optional Index of the new slide that will be added. If you don't specify an index, the slide is created at the end of the presentation.
timeout number optional Timeout for the activity. The default is 30000ms.

Output Parameters:

Name Type Description
slideDetails irpa_googleworkspace.slideDetails Parameter returning the details of the newly created slide.

Errors:

Error Class Package Description
GoogleSlidesError irpa_googleworkspace Thrown if a call to the google slides api fails.
SequenceError irpa_core Thrown if this activty is used without any authorization activity.
InvalidArgument irpa_core Thrown if this activty is used without the GoogleDriveScope.
Timeout irpa_core Thrown if the activity times out.
Error irpa_core Generic Error


Delete Presentation (Google Slides)

Delete an existing presentation.


Technical Name Type Minimal Agent Version
deletePresentation asynchronous WIN-2.0.0

Input Parameters:

Name Type Attributes Default Description
presentationId string mandatory The ID of the presentation to delete.
timeout number optional Timeout for the activity. The default is 30000ms.

Errors:

Error Class Package Description
GoogleDriveError irpa_googleworkspace Thrown if a call to the google drive api fails.
SequenceError irpa_core Thrown if this activty is used without any authorization activity.
InvalidArgument irpa_core Thrown if this activty is used without the GoogleDriveScope.
Timeout irpa_core Thrown if the activity times out.
Error irpa_core Generic Error


Add Slide Header (Google Slides)

Add a header to a specified slide.


Technical Name Type Minimal Agent Version
addSlideHeader asynchronous WIN-2.0.0

Input Parameters:

Name Type Attributes Default Description
presentationId string mandatory ID of the presentation in which you want to add a slide header.
slideId string mandatory ID of the slide in which you want to add a header.
text string mandatory Text to be added in the slide header.
font irpa_googleworkspace.enums.Fonts optional Font of the header text: the default font is 'Arial'.
size number optional Font size of the header text: the default size is 20.
timeout number optional Timeout for the activity. The default is 30000ms.

Errors:

Error Class Package Description
GoogleSlidesError irpa_googleworkspace Thrown if a call to the google slides api fails.
SequenceError irpa_core Thrown if this activty is used without any authorization activity.
InvalidArgument irpa_core Thrown if this activty is used without the GoogleDriveScope.
Timeout irpa_core Thrown if the activity times out.
Error irpa_core Generic Error


Add Text (Google Slides)

Add text to a slide.


Technical Name Type Minimal Agent Version
addText asynchronous WIN-2.0.0

Input Parameters:

Name Type Attributes Default Description
presentationId string mandatory ID of the presentation in which you want to add text.
slideId string mandatory ID of the slide in which you want to add text.
text string mandatory Text to be added in the slide.
font irpa_googleworkspace.enums.Fonts optional Font of the text: the default font is 'Arial'.
size number optional Font size of the text: the default size is 15.
timeout number optional Timeout for the activity. The default is 30000ms.

Errors:

Error Class Package Description
GoogleSlidesError irpa_googleworkspace Thrown if a call to the google slides api fails.
SequenceError irpa_core Thrown if this activty is used without any authorization activity.
InvalidArgument irpa_core Thrown if this activty is used without the GoogleDriveScope.
Timeout irpa_core Thrown if the activity times out.
Error irpa_core Generic Error


Add Image (Google Slides)

Add an image to a specified slide.


Technical Name Type Minimal Agent Version
addImage asynchronous WIN-2.0.0

Input Parameters:

Name Type Attributes Default Description
presentationId string mandatory ID of the presentation in which you want to add an image.
slideId string mandatory ID of the slide in which you want to add an image.
link string mandatory Link of the image to be added in the slide. The URL should start with http:// or https://. The images must be less than 50MB in size, cannot exceed 25 megapixels, and must be in PNG, JPEG, or GIF format.
text string optional Description of the image.
timeout number optional Timeout for the activity. The default is 30000ms.

Errors:

Error Class Package Description
GoogleSlidesError irpa_googleworkspace Thrown if a call to the google slides api fails.
SequenceError irpa_core Thrown if this activty is used without any authorization activity.
InvalidArgument irpa_core Thrown if this activty is used without the GoogleDriveScope.
Timeout irpa_core Thrown if the activity times out.
Error irpa_core Generic Error


Create list (Google Slides)

Create a list in a slide.


Technical Name Type Minimal Agent Version
createList asynchronous WIN-2.0.0

Input Parameters:

Name Type Attributes Default Description
presentationId string mandatory ID of the presentation in which you want to add a list.
slideId string mandatory ID of the slide in which you want to add a list.
text string mandatory Description of the list.
values Array. mandatory Array of values to be added as the list items.
bullets irpa_googleworkspace.enums.BulletType optional Bullet style to be used in the list. The default bullet style is 'Disc'.
timeout number optional Timeout for the activity. The default is 30000ms.

Errors:

Error Class Package Description
GoogleSlidesError irpa_googleworkspace Thrown if a call to the google slides api fails.
SequenceError irpa_core Thrown if this activty is used without any authorization activity.
InvalidArgument irpa_core Thrown if this activty is used without the GoogleDriveScope.
Timeout irpa_core Thrown if the activity times out.
Error irpa_core Generic Error


Create Table (Google Slides)

Create a table in a slide.


Technical Name Type Minimal Agent Version
createTable asynchronous WIN-2.0.0

Input Parameters:

Name Type Attributes Default Description
presentationId string mandatory ID of the presentation in which you want to add a table.
slideId string mandatory ID of the slide in which you want to add a table.
columns Array. mandatory The title of each column.
rows Array. mandatory The multidimensional array of values to be set in the table cells. This input accepts both single dimensional and two dimensional arrays (Max 2 dimensions only). In case of single dimensional array, we accept values in strings as ['1,2,3,4', 'A,B,C,D,E'] in which each string will represent one row. In two dimensional array, each inner dimensional array represents an row or column based on major dimension. for example [['100.00','3,14','10'], ['first', 'second', 'third']].
timeout number optional Timeout for the activity. The default is 30000ms.

Errors:

Error Class Package Description
GoogleSlidesError irpa_googleworkspace Thrown if a call to the google slides api fails.
SequenceError irpa_core Thrown if this activty is used without any authorization activity.
InvalidArgument irpa_core Thrown if this activty is used without the GoogleDriveScope.
Timeout irpa_core Thrown if the activity times out.
Error irpa_core Generic Error


Delete Slide (Google Slides)

Delete a slide in a specified presentation.


Technical Name Type Minimal Agent Version
deleteSlide asynchronous WIN-2.0.0

Input Parameters:

Name Type Attributes Default Description
presentationId string mandatory ID of the presentation from which you want to delete a slide.
slideId string mandatory ID of the slide to delete.
timeout number optional Timeout for the activity. The default is 30000ms.

Errors:

Error Class Package Description
GoogleDriveError irpa_googleworkspace Thrown if a call to the google drive api fails.
SequenceError irpa_core Thrown if this activty is used without any authorization activity.
InvalidArgument irpa_core Thrown if this activty is used without the GoogleDriveScope.
Timeout irpa_core Thrown if the activity times out.
Error irpa_core Generic Error