--- title: "system.opchda.replace" description: "Replaces values on the OPC-HDA server if the given item ID exists." --- # system.opchda.replace > Replaces values on the OPC-HDA server if the given item ID exists. This function is used in **Python Scripting**. ## Description ## Client Permission Restrictions [Permission Type](../../../ignition-modules/vision/vision-project-properties/vision-project-properties.md#vision-permissions-properties): OPC Server Management Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope. ## Syntax `system.opchda.replace(serverName, itemId, value, date, quality)` ### Parameters Type | Parameter | Description ------- | ------- | ------ String| `serverName` | The name of the defined OPC-HDA server. String| `itemId` | The item ID to perform the operation on. Object| `value` | The value to replace. Object| `date` | The date to replace. Integer| `quality` | The quality to replace. ### Returns **Integer** - The items quality resulting from the operation. ### Scope Gateway, Vision Client, Perspective Session