I have been looking at the following article A simple e-mail notification system for Survey123 for ArcGIS v2
I'm just wondering is it possible to run this against feature layers in AGOL as all our Survey123 feature layers are online in AGOL.
Yes, the script shared by Ismael in the A simple e-mail notification system for Survey123 for ArcGIS v2 blog post works against ArcGIS Online and Enterprise (Portal).
You may also be interested in Webhooks, which can be used in Survey123 to send an email when a new survey is submitted: Webhooks—Survey123 for ArcGIS | ArcGIS
A few blog posts on Webhooks: Automating workflows with Survey123 and Microsoft Flow and Sneak Peek: Survey123 and Webhooks (Integromat)
Thanks for the reply Philip.
Just another query, I want to send the email only when a certain field contains certain data, for example, if field called "Priority" contains "high" then an email is sent.
Is this possible?
I think webhooks answers my last question.
Yes, using Webhooks you can only send an email when certain criteria are met.
Retrieving data ...