This feature was disabled by a security update a while back. Some possible workarounds are listed here: https://www.slipstick.com/outlook/rules/outlook-run-a-script-rules/
How get run script option in Outlook 365 mail rules
Hi Everyone!
Earlier Outlook version use to have run script option in rule creation to execute scripts upon receipt of email. in Outlook 365 this option is not visible
2 answers
Sort by: Most helpful
-
-
ChristyZhang-MSFT 24,496 Reputation points Microsoft Vendor
2023-07-19T01:25:40.2833333+00:00 Hi @Venkata Harshavardhan Karri ,
Welcome to our forum!
Please refer to the following steps and try to change the registry:
1.Select Start, select Run, type regedit in the Open box, and then select OK.
2.Locate and then select the registry subkey:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Security
3.Right click>New, create the below registry:
Value Name: EnableUnsafeClientMailRules
Value Type: REG_DWORD
Value: 1
4.Restart Outlook.
(Note: Serious problems can occur if you modify the registry incorrectly. Before making changes, back up the registry to restore it in case something goes wrong.)
Then “Run a script" will be displayed under the Select actions when you create rules.
Hope the above help!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.