title: How to build Azure Data Factory and Azure functions for file validation check and sending error mail
body: <p>I have a Azure Data Factory Copy activity within a pipeline.
  The copy activity is working. I have 2 questions.
  The first Q is how to build Azure data factory or Azure functions to execute any processes below.</p>
  <ol>
  <li>Copy uploaded csv files or excel file to another conteiner.</li>
  <li>Execute validation check of azure function for that coded by python.</li>
  <li>Send the mail included error messages as attached file generated by the validation check by Azure send grid for SMTP.</li>
  <li>If there is no problem with the validation check, copy that file to  SQL database table.</li>
  </ol>
  <p>Thank you a lot for your cooporations in advance.</p>