Share functions

Functions used to write data to Docly, such as data sbumitted from web apps or imported from XLSX, JSON, CSV etc.

Down­loa­d(file, template, preview)
Producses a file using the specified template (HTML, PDF etc) and initiates the file download in the browser.
Get­FileS­h­are­s(path)
Returns the active shares for a specific file.
Add­FileS­h­are(file, user, access, subject, message)
Creates a new share / overwrites existing for a specific file and user, and sends a notification to the user.
Re­move­Fil­eS­hare(file, user)
Removes / terminates a users access to a specific file.
Sen­dEmai­l(file, template, receiver, subject, message)
Producses a file using the specified template (HTML, PDF etc) and sendes the output by email.
Down­loa­dE­mbed­ded(file, embeddedId, filename)
Downloads an embedded file from a document.
Ge­nera­teD­ocu­men­t(file, template)
Produces a file using the specified template (HTML, PDF etc) and returns it as a byte array.
Send­For­m(form, subject, sendTo, smtp, subjectPrefix)
Use this function to send a submitted form by email from an API function.
Down­load­B­yte­s(data, filename, preview)
A method to trigger a file download from byte data or a base64 encoded string.