How to get the document ID from Appian documents.
Discussion posts and replies are publicly visible
Appian references documents by their ID already. So you can pass a valid integer to functions that expect a document, and vice versa.
And you can use tointeger() or the document() function to turn a document into a number, or get the ID from a document.
docs.appian.com/.../fnc_scripting_document.html
Thanks Stefan Helzle