Azure - Logic Apps condition functionality

Vijay 101 Reputation points
2022-09-13T12:24:28.437+00:00

Hi,

We have one document library and list in SharePoint.

Each time when a file gets uploaded in document library its metadata are stored in column of SharePoint library
We need to extract that metadata and compare that with masterList, if the metadata field value is not present in masterlist then it gets added in the list else it is not added.

First step : When a file is aded or modified in document library
240519-image.png

Second : used http to get all the details present in master list
240583-image.png

Third: used parse json for http of master list
240592-image.png

fourth: used http for document library to get details of files in doc library
240593-image.png

fifth : Parse JSON for doc lib
240575-image.png

sixth : used compose action to get metadata field value
240577-image.png

adding condition to check whether the metadata field is present in master list or not
240468-image.png

but the problem here is
compose action is taken from document library where only 2 files are uploaded.

but in condition when we trying to compare the metadata present in masterlist or not, it is taking 24loops, but there is not 24 files present

240611-image.png

Pls help to solve this

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,075 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.