I'm using a SQL Connector in Power Automate / Logic Apps / Flow.
How can I see if a value exists in a table without using SPs, aka directly against the table?
I tried using GetRowsV2 action. When the value exists, I get the nice body() block below.
What kind of dynamic expression can I use to see if approver_email is in that body? I'm missing something fundamental with the expressions here.
Thanks.
GetRows -> Body
{
"@odata.context": "https://canada-001.azure-apim.net/apim/sql/shared-sql-2618c6c8/$metadata#datasets('default%2Cdefault')/tables('%5Bdbo%5D.%5BDELEGATION_OF_AUTHORITY%5D')/items",
"value": [
{
"@odata.etag": "",
"ItemInternalId": "1706f376-b713-47f7-9bf2-a046bd899fe4",
"APPROVER_EMAIL": "jhealy@contoso.com"
}]}
I wound up using the below formula and seeing if its >0. Surely a better way out there?
length(body('Get_Rows_V2')?['value'])
Thanks...