AnsweredAssumed Answered

How to check if a File is in the root of the document library?

Question asked by cvuppala on Jan 25, 2016
Latest reply on Jan 26, 2016 by jackgelo

Hi,

 

I need to trigger a workflow only if an item is updated in the Root of the document library and not in the folders.

 

so for eg: any file that has the URL Path ending with  {serverUrl}/Shared Documents/MyDoc.docx should respond to the workflow

 

but not the file that has the path

 

{serverUrl}/Shared Documents/My Folder/MyDoc2.x

 

 

I tried the logic like so:

 

If the URL path Ends with Shared Documents, but it doesn't work. is there any better way of doing this?

 

Please help,

 

Thanks,

Outcomes