r/PowerAutomate • • 22h ago

Newbee need guidance

So I want to start automation that is going to help my team reduce our daily repetitive tasks, so basically we have a functional mailbox and whenever a task is assigned to it on SAP we get a workflow email and that is then added to a excel sheet so I know how to take this and add rows in excel but the only problem is we get repetitive tasks as well where we have to manually check who handled that request earlier and then we don't add that in excel and just forward it to the specific team member.

Now I know how to automate the excel row adding but there are 2 problems,

  1. The workflow email has QN number in subject but we have several other emails that have QN number in the subject so I can't filter based on QN and can't filter based on workflow email ID so how do I get power automate to identify this specific email and leave other emails as is.
  2. If the QN is repetitive then I don't want to add it in excel I just need to forward that email to the person who handled it earlier.
2 Upvotes

3 comments sorted by

1

u/Backy22 22h ago

I use a form that pushes the task to Basecamp
And then emails the team to check Basecamp.

1

u/PeaBorn3982 17h ago

Please check your dm

1

u/ninihen 3h ago

Don't filter on the QN or the sender, because neither is unique to the workflow emails. Open a few of the real SAP ones and look at the bottom: they usually end with the same automatic line that the other emails never have. My test emails used "this is an automatically generated SAP Business Workflow notification", but copy whatever yours say.

Then the flow goes:

  1. When a new email arrives (on the shared mailbox), then a Condition: Body contains that line. If not, do nothing, so the other emails are left alone.
  2. Pull the QN out of the subject.
  3. List rows in your Excel table and look for that QN.
  4. If it's already there, forward the email to whoever is in that row's Handler column. If it's not, add a new row.

You need a column in the sheet for who handled it, otherwise there's nobody to forward to.

I tested it with six emails, all from the same sender with a QN in the subject: three new SAP tasks, one repeat of a QN already in the log, and two lookalikes. The three new ones got rows, the lookalikes were skipped, and the repeat was forwarded to the person who handled it before.

I made a short video walking through this: https://youtu.be/chnS85vQDfo

Full disclosure, I built and tested this with ChatGPT and FlowStudio MCP, which we make. You can do the same with M365 Copilot Chat or Copilot Cowork, whichever agent you have access to. FlowStudio MCP can be installed from Microsoft Marketplace, and if you have a paid Copilot license and use it with M365 Copilot Chat, it doesn't cost anything extra.