How do I find out if a document exists through Automation chain?

I am using Document.create operation in my automation chain to create a Folder say “newDoc”. The operation chain creates newDoc.54524445xx if the newDoc is already available. I would like to know within automation chain if a Folder named newDoc is already available so that i can reuse it without creating a duplicate (newDoc.54524445xx). How can i do that?

0 votes

1 answers



Use the exists method of the CoreSession to check for the presence of a document, passing a PathRef with the path for the document you want to check for.

0 votes