There’s a complex Travel Approvals process in our organisation that I’m trying to automate for our Lean Management project. When someone puts through a request on MS Forms, it (ideally) would trigger a 3-stage approval process.

We have a Cost Approvals Matrix set up as a SharePoint List controlled by our Finance Department. This determines the 1st through 4th approvals for any Cost Centre. Drawing from this data keeps the process as up to date as it possibly can be.

I need to retrieve the 1st and 2nd line approver emails from the SharePoint List, which are People columns based on the Department entered on the Form. I can’t seem to make this work. If I get an Output directly from the ‘Get Items’ function, it initialises a ‘for each’ and I can’t make that work for Approvals. I’m now using two ‘Select’ entries to get the email addresses, but I’m having trouble translating that back to email outputs.

The Department is a unique entry on the SharePoint list, so that is my filter parameters. I’ve made sure the Form has listed them exactly.

I’m trying to use the ‘Union’ function to bring these back together. This is the error I’m getting now.

Can anyone help? I’ve tried this so many different ways, and I’m at my wits end right now. I suspect I’m misunderstanding how to use the ‘union’ function. As I understand it, it can operate with a singular source, but my syntax is probably wrong.
union(body('Select_BH_1st_Line_Approver'))