Update Datalinks - Zoho Show
Note: This task is applicable to all services except Zoho Creator.
Overview
This task is used to update one or more data link values in a presentation.
Syntax
<response> = zoho.show.updateDataLinks(<rid>, <dataFieldsList> <connection>);
Scope
ZohoShow.showedit.UPDATE
Parameter
| Parameter | Description | Data type |
| <response> | Variable that holds update status | KEY-VALUE |
| <rid> | ID of the presentation Note:
https://show.zoho.in/show/open/{rid} | TEXT |
| <dataFieldsList> | List of data link IDs and their new values | LIST |
| <connection> | Name of the Zoho Show connection | CONNECTION |
Example
The following script updates multiple data links in a presentation
rid = "xfXXXXXX"; field1 = Map(); field1.put("dataFieldId","C1XXX-XXX-XXX-XXX-XXX"); field1.put("dataFieldValue","Nivesha"); field2 = Map(); field2.put("dataFieldId","28XXX-XXX-XXX-XXX-XXX"); field2.put("dataFieldValue","1234"); dataFieldsList = List(); dataFieldsList.add(field1); dataFieldsList.add(field2); response = zoho.show.updateDataLinks(rid,dataFieldsList,"zoho_show_connection");
where:
xfXXXXXX
This is the presentation ID.
field1,field2
Key value that holds the ID and the value of the Data Field ID.
dataFieldsList
List of Data Fields that has to be updated
zoho_show_connection
This is the text that represents the name of the connection link.
Response
{
"Updated datafields": "{"C1XXX-XXX-XXX-XXX-XXX":"Nivesha","28XXX-XXX-XXX-XXX-XXX":"1234"}",
"status": "success" }
"Updated datafields": "{"C1XXX-XXX-XXX-XXX-XXX":"Nivesha","28XXX-XXX-XXX-XXX-XXX":"1234"}",
"status": "success" }