title: Azure-data-Factory Copy data If a certain file exists
body: <p>I have many files in a blob container. However I wanted to run a Stored procedure only IF a certain file (e.g. SRManifest.csv) exists on the blob Container. I used Get metadata and IF Condition on Data Factory. Can you please help me with the dynamic script for this. I tried this <code>@bool(startswith(
  activity('Get Metadata1').output.childitems.ItemName,
  'SRManifest.csv'))</code>. It doesnt work.</p>
  
  <p>Then I thought, what if i used <code>@greaterOREquals(activity('Get Metadata1').output.LastModified,adddays(utcnow(),-2))</code>But this checks the last modified within 2 days of the Bloob not the file exist. Thank you.</p>
  
  <p>Please see below my diagram<a href="https://i.stack.imgur.com/7ANYs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7ANYs.png" alt="enter image description here"></a></p>