我正在尝试复制下面设置的以下条件。这在 SQL 中很容易,但是我的条件任务似乎没有按预期工作(或者我的理解不正确。)
If statuscode not equal to 1 AND entityname NOT IN (GlobalOptionsetMetadata,
StateMetadata, StatusMetadata, TargetMetadata, OptionsetMetadata)
OR
div(sub(ticks(utcNow()), ticks(triggerOutputs()?['body/modifiedon'])), 600000000) < 30 AND (entityname IN (bankaccounttrans, dimensionattributevaluecombination etc. AND entityname NOT IN GlobalOptionsetMetadata, StateMetadata etc.)
但是,我从底部的不等于表中收到电子邮件,我希望这些邮件被排除在外。处理此类情况的最佳方法是什么?
我想这会达到我想要的效果。到目前为止测试正在进行中。如果您同意,请确认。
(body/statuscode is not equal to 1
AND
createArray('GlobalOptionsetMetadata', 'StateMetadata', 'StatusMetadata', 'TargetMetadata', 'OptionsetMetadata') does not contain body/entityname)
OR
(div(sub(ticks(utcNow()), ticks(triggerOutputs()?['body/modifiedon'])), 600000000) < 30 AND createArray('bankaccounttable', 'bankaccounttrans', 'dimensionattributevaluecombination', 'dimensionattributevaluegroupcombination', 'dimensionattributelevelvalue', 'generaljournalaccountentry', 'ledgerjournaltrans','vendtrans') contains body/entityname)