When a new item is added in SharePoint list add item level permission so only a specific SharePoint Group can access the item
I tried using "Grant access to an Item or Folder" but looks like we can use only emails in the recipient field.
So I created the flow below. It is working as expected but the only issue is that permissions is updated for the new added item along with any item I created that day (Honestly I have not been able to figure out which previous items are updated....created an hour ago or the same day etc)
But irrespective of that the issue is it updated already existing items along with the new ones added too.
Also I will mention that the previous once were already executed by the flow when they were created.
This is an issue as say I create an item and assign to Group 1
Then I create another item and assign to Group 2.
The flow updates the first item and assigns it to Group 2.
This is not the requirement as group 1 should not be able to see group 2 items.
Can you help me understand what is wrong with the flow below?