Hello! I'm trying to accomplish a specific task and am very new to Power Automate. I'm hoping someone can help me with this.
I have a list of items coming into the workflow by which the workflow is triggered on change. Let's say this is LIST A.
1. Component
2. Component Type
3. Dashboard ID
I'm working with a SharePoint list. Let's say the List is LIST B. This list has a few columns that I am interested in retrieving. Below are the list of columns:
1. ID
2. Component
3. Component Type
4. Dashboard ID
List B is retrieved when Dashboard ID on LIST A finds a match with LIST B.
I need help achieving the below:
Condition 1: If no items are retrieved from LIST B with the matching Dashboard ID from LIST A, I need to insert rows into LIST B with the details from LIST A. I call this an 'insert' pile
Condition 2: If a match is found from LIST B with the matching Dashboard ID from LIST A
AND the Component, Component ID exists on LIST B AND does not exist on LIST A
I need to delete the row in SharePoint from LIST B. I call this a 'Delete' pile
Condition 3: If a match is found from LIST B with the matching Dashboard ID, Component, Component Type from LIST A, no action is needed. I call this a 'keep' pile
To add to this, I have about 9 lists of the LIST A type that I need to collect and perform the same action with LIST B.
I have tried this in several different ways and couldn't get anywhere. Please let me know how I can achieve this efficiently, and any help is greatly appreciated.
Thank you!