Hi Krzysztof Wiech,
I hope you're having a productive day.
In Power Automate connectors list, they have trigger for when new emails arrive in shared mailboxes and you can easily set them up. To find this trigger, you can search for " Office 365 Outlook" or navigate through the connectors list.
However, since you also want to use your personal account in shared mailbox, it's good to remember that in some organizations, using a personal connection for shared flows is considered a governance risk and service accounts may be required instead. If the flow is business-critical, it's recommended to use a service account (or shared mailbox identity) rather than your own account.
The minimal configuration requires selecting the shared mailbox you want to monitor. This mailbox must be one that you have access to within your organization.
- Shared Mailbox Address: Select the email address of the shared mailbox from the drop-down list.
- Folder: Choose which folder to monitor within the shared mailbox. By default, this is set to "Inbox," but you can select other folders.
The trigger fires when any email arrives in the shared mailbox. You must then check if the mailbox was in the CC field. If yes, then Move email to a specific folder
Clicking "Show advanced options" reveals additional settings that give you more control over which emails trigger your flow.

- To: Filter emails based on the recipients in the To field. You can specify one or more email addresses, separated by semicolons.
- CC: Similar to the To filter, but checks the CC field instead.
- To or CC: These are similar to the previous ones but a combination of both. So, if an email exists in either "To" or "CC," it will show up.
Please note that, the CC only returns if there's data. If the email doesn't have anyone in CC, then the JSON field is not even returned. So, if you want to access the information, don't forget to include the "?" operator to be sure your Flow doesn't fail, like this.
triggerOutputs()?['body/ccRecipients']
The CC and TO are also not arrays. Since both fields could have multiple email addresses, one could think that the field is an array, but it's not. It's a string separated by ";". So if you need an array with the CC or TO fields, you need to use the "split" function like this:
split(triggerOutputs()?['body/ccRecipients'],';')
Your requirement "Only send auto-reply if the mailbox is in CC" requires Send-as permission for the shared mailbox.
You can find guidance towards this via this link: Send Emails from a Shared Mailbox in Power Automate (Without Full Access)
However, I believe you require more in-depth guidance or support for these steps, I’d recommend posting your query in the Microsoft Power Automate Community. This is a dedicated channel for Power Apps discussions. The reason I suggest posting a new topic there is that in the general Q&A Forum, resources and expertise on Power Automate are limited. In the Microsoft Power Platform Community Forum, you’ll find the most qualified group of respondents, and other partners who regularly read the forums can share their knowledge or learn from your interaction.

I hope this information is helpful. Should you have any further questions or need additional assistance, feel free to reach out.
Thank you again for your understanding and cooperation.
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.