Dataverse table has a list of clients that maybe inactive and need to be deactivated.
The list of clients that are supposed to be active is provided in an Excel table containing client IDs.
The flow is as follows:
List Rows (Dataverse)
For each row, look up the Excel table to see if the client ID exists using Filter Query . If it doesn't then client is not in the active list and will be deactivated.
My issue is it is slow so it's possible for each row, it keeps reloading the Excel from OneDrive and does a lookup for matching client ID. If so it will be more efficient to read the Excel once and load the active client IDs in an array. Then in Apply to each, search the array for the matching client ID. But I couldn't find any reference on how to search an array for matching entry.
Categories: