Salesforce Native Connector 25.1
Salesforce Native Connector Help

# zip_file

The `zip_file` function zips the supplied path (file or directory). It overwrites the output file only if you set the optional `overwrite` argument to `true`.

## Syntax

    zip_file( path [, overwrite] )

## Arguments

Argument | Description
--- | ---
`path` | (string) The path or filename of the file or folder to zip.
`overwrite` | (boolean) A boolean that specifies whether to force the creation of the zip file if an output file already exists. The default is `false`.

## Returns

(Boolean). Returns a Boolean indicating success or failure. On success writes a file called `path.zip`.

Copyright 2024 Open Text
Version 25.1 | Last updated January 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Salesforce Native Connector 25.1

Topic Title: zip_file