This is the function listed in the script library.
Where and What do I use to call this function.
How do I call this function that is listed in a script Library. (I am just beginning to learn how to work in notes).
RevSaveReason This sub appends a new entry line to the Revision History. The line contains the revision number, date & time of the revision, who made the revision and the reason for the revision. You can call it from your script, for example, to record certain actions done to a document (e.g. the document was approved.)
Note
This sub does not save an old revision of the document. Since RevHistory is usually called from the Querysave event which already saves the document, the save would be redundant. However, if you call RevSaveReason from your own code, you must add the code to save the document.
If you are working with a new document created by a script, this sub initializes the revision history. You can pass it a custom RevReason, e.g "Document created with import from... "
If the document already has a revision history, this sub appends a new revision history line.
Where and What do I use to call this function.
How do I call this function that is listed in a script Library. (I am just beginning to learn how to work in notes).
RevSaveReason This sub appends a new entry line to the Revision History. The line contains the revision number, date & time of the revision, who made the revision and the reason for the revision. You can call it from your script, for example, to record certain actions done to a document (e.g. the document was approved.)
Note
This sub does not save an old revision of the document. Since RevHistory is usually called from the Querysave event which already saves the document, the save would be redundant. However, if you call RevSaveReason from your own code, you must add the code to save the document.
If you are working with a new document created by a script, this sub initializes the revision history. You can pass it a custom RevReason, e.g "Document created with import from... "
If the document already has a revision history, this sub appends a new revision history line.