Hi
Perform a Kusto query to extract the idnumber values.
idnumber
KustoQuery | project idnumber
Use ADO REST API to get data and extract the idnumber values.
json
GET https://dev.azure.com/{organization}/{project}/_apis/wit/workitems?api-version=6.0
After fetching the data from both sources, extract the idnumber into arrays.
YourKustoQuery | project idnumber
[ { "id": 1, "fields": { "idnumber": "123" } }, { "id": 2, "fields": { "idnumber": "456" } } ]
Compare the idnumber arrays using Power Automate.
Extract idnumber from Kusto:
Extract idnumber from ADO:
Json
[ { "fields": { "idnumber": "123" } }, { "fields": { "idnumber": "456" } } ]
Use Apply to Each:
Use Apply to Each to iterate through each idnumber from the Kusto query and check if it exists in the ADO results.
Compare for Duplicates:
union (KustoIdNumbers) intersect (ADOIdNumbers)
This will output common idnumbers between Kusto and ADO.
Choose a suitable trigger, such as:
Run the Kusto Query:
[ { "idnumber": "123" }, { "idnumber": "456" }, { "idnumber": "789" } ]
Query ADO Data:
[ { "idnumber": "123" }, { "idnumber": "999" } ]
Initialize Two Variables:
KustoIDs
ADOIDs
Apply to Each Loop (Iterate over Kusto IDs):
Condition to Check for Duplicates:
contains(variables('ADOIDs'), items('Apply_to_each'))
Handle Duplicate Matches:
DuplicateIDs
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tomac 497 Moderator
Michael E. Gernaey 477 Super User 2025 Season 2
chiaraalina 242