I would like to create a flow that flags emails based on specific conditions. For example, if an email contains the word “dinner,” it should be automatically flagged. I have attempted to set this up myself, as shown below, but the test is currently failing.
My set up is as below:
{"nodeId":"Condition","serializedValue":{"type":"If","expression":{"contains":["@triggerOutputs()?['body/body']","dinner"]},"actions":{"Flag_email":{"type":"OpenApiConnection","inputs":{"parameters":{"messageId":"@triggerOutputs()?['body/id']"},"host":{"apiId":"/providers/Microsoft.PowerApps/apis/shared_office365","connection":"shared_office365","operationId":"Flag_V2"}}}},"else":{"actions":{}},"runAfter":{}},"allConnectionData":{"Flag_email":{"connectionReference":{"api":{"id":"/providers/Microsoft.PowerApps/apis/shared_office365"},"connection":{"id":"/providers/Microsoft.PowerApps/apis/shared_office365/connections/shared-office365-bc79df50-bad1-47cb-b507-b3b1d7f5b8a9"},"connectionName":"shared-office365-bc79df50-bad1-47cb-b507-b3b1d7f5b8a9"},"referenceKey":"shared_office365"}},"staticResults":{},"isScopeNode":true,"mslaNode":true}