I then have a filter array. I need this array to compare the group and the excel to leave me with just emails to use so I can remove them from the group.
So if user123@mydomain.com is in the group but not in the excel, this will then go to an apply to each to be removed from the group.
I have tried SO many things now and for the life of me I can't get this filter array to work correctly.
Is this a one-time maintenance thing or are you trying to develop something where if someone is added to the group and they're not in the Excel spreadsheet, then you want to remove them? If it is a one-time thing, set it up like this and replace the compose action with the action to delete the person from the group:
Some Notes:
The Excel action contains a query filter based on the e-mail address from the group matching an e-mail address in the spreadsheet:
The condition checks to see if one row was returned from the spreadsheet:
This is the expression used above: length(outputs('List_rows_present_in_a_table')?['body/value'])
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.