So I have an interface that has links to documents that have been uploaded. However, the documents don't exist until after they've gone through a process model (or rather they're a temp file that you can't reference at that time). What I'd like to do is disable those links if the documents haven't been put into the system yet, but I am not sure how to check to see if the document exists in the system yet or not. Is there a function or something that can test a doc id to see if it's valid or not?
Discussion posts and replies are publicly visible
Use getDocumentsFromFolder in the root folder.
Its a spam.
I noticed the "invactive" typo and filed a bug report for it with the plug-in authors... 5 years ago maybe? maybe more?
Anyway here's my expression rule that tests whether any given ID is an *existing, inactive document*.
and( rule!UTIL_docExists(ri!doc), /* does "not null or 0" check, checks using "is [document] object exists" function; if all are true, returns true */ find( /*"State: Invactive Published",*/ /* note misspelling above. instead, checking against the correctly-spelled output for Active documents */ "State: Active Published", getcontentobjectdetailsbyid(ri!doc) ) = 0 )