Create presentation using data links - Zoho Show
Note: This task is applicable to all services except Zoho Creator.
Overview
This task is used to duplicate an existing presentation or library template and update data link values in the newly created presentation.
Syntax
<response> = zoho.show.createPresentationUsingDatalinks(<rid>, <dataFieldValues>, <docName>, <toPublish>, <teamId>, <folderId>, <connection>);
Scope
ZohoShow.showdocslist.CREATE
Parameter
| Parameter | Description | Data type |
| <response> | Variable that holds the details of the created presentation | KEY-VALUE |
| <rid> | ID of the source presentation or library template Note: Getting the Presentation ID (rid)
https://show.zoho.in/show/open/{rid} Note: Getting the Presentation ID (rid)
https://show.zoho.in/show/open/{template_rid} | TEXT |
| <dataFieldValues> | Map containing data link (dataField) IDs and their corresponding values | KEY-VALUE |
| <docName> | Name of the new presentation | TEXT |
| <toPublish> | Specifies whether the presentation should be published or not | BOOLEAN |
| <teamId> | WorkDrive team ID Note:
https://show.zoho.in/show/api/presentation/products
Sample response (trimmed): { "product": "TEAMDRIVE", "teamId": "91382829", "name": "Test team" } In this example, | TEXT |
| <folderId> | WorkDrive folder ID Note:
Folder inside My Folder: https://workdrive.zoho.com/{teamId}/privatespace/folders/{folderId} Team Folder: https://workdrive.zoho.com/{teamId}/teams/{teamId}/ws/{teamFolderId}/folders/files Folder inside a Team Folder: https://workdrive.zoho.com/{teamId}/teams/{teamId}/ws/{teamFolderId}/folders/{folderId} | TEXT |
| <connection> | Name of Zoho Show connection | CONNECTION |
Example
The following script creates a presentation named - User details by duplicating an existing presentation and updating data link values.
Name - Nivesha , Gender- Female
dataFieldValues = Map(); dataFieldValues.put("28X-XXX-XXX-XXX-XXX","Nivesha"); dataFieldValues.put("C1XXX-XXX-XXX-XXX-XXX","Female"); rid = "w7XXXXXX"; teamId = "62XXXXXX"; folderId = "z5XXXXXX"; docName = "User details"; toPublish = true; response = zoho.show.createPresentationUsingDatalinks(rid, dataFieldValues,docName,toPublish,teamId,folderId,"zoho_show_connection");
where:
w7XXXXXX
62XXXXXX
z5XXXXXX
User details
zoho_show_connection
Response
"CreatedTime": "1587722356436",
"PresentationId": "lz*********",
"DocumentName": "User details",
"OpenURL" : "https://show.zoho.com/show/open/lz*********"
"Published document url": "https://show.zohopublic.com/publish/lz*********"
}