
Hi Abivanth R
Welcome to Microsoft Community. Thank you for reaching out.
To better assistance, could you please provide detail information:
- Are you using SharePoint Online or SharePoint Server (on-premises)?
- Do you want the button to be added to a modern SharePoint page or a classic page?
- Should the script run on behalf of the user or just use a service account with delegated permissions?
- Is the Azure Runbook already configured with a webhook URL, or do you need help setting that up?
- Are you using Send-MailMessage in PowerShell or Microsoft Graph API to send the email?
Your detailed response will help us diagnose and resolve the issue more efficiently.
Thank you for your cooperation.
Best regards,
Alex - MSFT | Microsoft Community Support Specialist