createTempFile

To create a temporary file on the Ninox server

This function creates a temporary file on the Ninox server with the given content and file name and returns a link to that file.

Only members of the respective workspace (team) can access the file via the link.

Use this function in combination with appendTempFile() rendering large or long-running exports.

This function will only create a file if there is any content in it.

As this file is of temporary nature, it will be automatically deleted at some point. So don't take it for granted.

The function can be executed only on the client. Learn more about execution context.

Syntax

createTempFile(string, string)

Return

link

Examples

createTempFile(myContent, fileName) To create a temporary file on the Ninox server

URL := do as server createTempFile("CustomerID,Revenue
", "export.csv")
end

Result: The URL field contains a link to the export.csv file.

See also

appendTempFile, which adds content to a temporary file on the Ninox server.

Last updated