How do I loop through items in an API and compare the data to a SharePoint list when both have an OrderID as a primary key in common.
Here is the flow so far:

I'm not sure how to do the comparison within the Apply to each loop. How do I compare the API item to a SharePoint row, insert a row that does not exist in SharePoint, and update existing rows?