Welcome to Microsoft Q&A platform and thanks for posting your question.
As I understand your ask, you are trying to trigger an email using ADF pipelines without using Logic app.
You can go for one of the below suggested options:
You can create an Alerts in Azure Data Factory (ADF) Monitor section under Alerts and Metrics option.
- Using Alert in ADF, you can get metrics like : PipelineSucceededRuns (The total number of pipeline runs that succeeded within a certain time window) , ActivityFailedRuns(The total number of activity runs that failed within a certain time window), PipelineFailedRuns(The total number of pipeline runs that failed within a certain time window) etc.
- However, you can't customize the metrics you want to fetch or format of the mail you want to have like we can do using Logic apps. Also, as per your ask you want to get error message, it is not possible with alerts.
- Learn more about creating alerts in Azure Data Factory.
Kindly checkout this video for more details.
Additional resources: Use Alerts to send out Email in ADF
You can Send notifications to a Microsoft Teams channel from an Azure Data Factory
- Kindly check the following article to get the full details on how to do that: Send notifications to a Microsoft Teams channel from an Azure Data Factory or Synapse Analytics pipeline
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators