cancel
Showing results for 
Search instead for 
Did you mean: 

How to check if a file exists?

johan1974
Champ in-the-making
Champ in-the-making
Hello,

How can i check if a file exists within the repository with js?

Thnx!
2 REPLIES 2

jpfi
Champ in-the-making
Champ in-the-making
Hi,
you can also use the other search-Methods: http://wiki.alfresco.com/wiki/JavaScript_API#Search_API
like search.findNode(nodeRef) or search.xpathSearch(string xpath)
You can use this javascript in a webscript in a JS Action or inside of a workflow.
Cheers, Jan