Question: how to create rule in outlook shared mailbox?
Answer: Select the Settings menu icon. ... 
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.
Add conditions, actions, and exceptions accordingly.