Search…
⌃K
Links

unshareFile

To unshare a given file
With this function, you can stop sharing a file.

Syntax

unshareFile(file)
unshareFile(nid, string)

Return

void

Examples

unshareFile(myFile) To unshare a given file.
1
unshareFile(Invoice)
Result: Stops the sharing of the file saved in the Invoice field.
​
unshareFile(record, fileName) To unshare a file or attachment of a given record.
1
unshareFile(this, "Invoice-001.pdf")
Result: Stops the sharing of the Invoice-001.pdf file of the current record.

See also

​shareFile, which returns a URL of a specific file.