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
findcontentbyattribute() is part of Content Tools plug-in, It should be available to most env. please do deploy if not.
you can also use the below logic to find the object exist in the system
"No object with this ID has been found",
tostring(local!objectDetails) = "No object with this ID has been found",
Thanks, but this gives me true even though I can't download the document yet. It somehow exists, but when I click the link I get a "Error 404 - Page Not Found"
I need to search by id as the name is not unique
I think I can work with this somehow. Just noticed a typo in the output though. Any idea who I'd report that to? The state for docs that haven't been published yet is, "State: Invactive Published"
The document must be active published check the below link for more info.
Yes I know, the issue was to be able to look at a document ID and tell if it has been published yet or not. getcontentobjectdetailsbyid() allowed me to do that
Is there a way to find if the document is already in the system, before we use the document() function with the attributes
© 2023 Appian. All rights reserved.