Question: can we create a rule for shared mailbox?
Answer: Set a rule in Outlook on the web for a shared mailbox and choose Mail. In the Mail > Automatic processing section choose Inbox and sweep rules. In the Inbox Rules section choose the + (plus) icon to add a new rule. Give the rule an appropriate name.