Namaste everyone!

Basically I am creating record from Xrm.WebApi.createRecord. which i have putted inside the WebResource.inside <script> </script>. and i have created ribbon button for calling webresource. after creating a record from webresource the record is creating. but i also want to send them mail so i have also created Cloud Automate Flow which will trigger when new record will create. but in my case the flow is not triggering. and record is creating in dataverse.