This function helps in situations where the designer or developer has to act upon an Appian object (e.g. Document, Folder, Community, Knowledge Center). Before doing any operations on the Appian object this function can be used to check whether the object exists.
Syntax: isObjectExists(typeOfObject, objectId)
Returns true or false based on the existence of the Appian object
Short information:If you check for an ID and there is no object of the defined type with this Id, it will create a log entry.I tried this function to search for all groupIds in a system.Idea was: loop and enumerate all IDs and then return the ids which are existing. yeah....
-> I made our tomcat crash as i was creating 5 GB and more in log files because most groupIds i was checking are not in Use -> log entry -> huge log size in a short time.
thank you so much for this plug-in! I'm really surprised that there isn't a "native" function that does this. Solves a major issue I've had between different environments that have duplicated tables, but not duplicated folders/documents :)
awesome. thank you for you input here
Just checking in to confirm this still apparently works fine in 20.2, and appears to be nice and snappy.
© 2021 Appian. All rights reserved.