
Hi,
I am having a SharePoint List containing only Names column in it.
I am running a flow, in which I am fetching my list of names through API and storing them in an Array variable.
This flow will run daily, and so the names in SharePoint list should be updated according to array.
The problem is, how to update my SharePoint list, such that if any name is new, then it will be added to SharePoint list and if any name is not present in new name list(array) then it should not be there in updated SharePoint list.
I know, we can do "apply to each" on array variable and then check if "current item" is present in "get items- SharePoint",
but it will take a lot more time for large data set.
and for delete items, we have to do it again process.
ANY SOLUTIONS OR SHORTCUT I AM MISSING??????????????????????????????????
Hi @akshatjain4
It would be possible to do it in quick way.
I am little confused at this part
if any name is new, then it will be added to SharePoint list and if any name is not present in new name list(array) then it should not be there in updated SharePoint list.
does this means if any name in array is not present in sharepoint list, it should create it, if name in array is already present in sharepoint list, it should delete that item from sharepoint list, could you confirm it pls?