如何在Logic Apps搜索查询中转义“:”?

时间:2019-12-12 03:15:56

标签: azure azure-logic-apps

我只希望收到新电子邮件,不回复或转发电子邮件。 这是我的查询:

(主题:返回NOT“ re:”或subject:装运NOT“ re:”)AND(附件:NOT返回异常或附件:装运NOT异常)AND(主题:返回NOT调整)AND(主题:return not“ fw:” OR subject:shipment not“ fw:”)

enter image description here

但是我得到这些错误。这些查询在MS Outlook应用程序中运行良好。

{
  "status": 400,
  "message": "Syntax error: character ':' is not valid at position 24 in '\"(subject:return NOT \"re:\" OR subject:shipment NOT \"re:\") AND (attachment: return NOT exception OR attachment:shipment NOT exception) AND (subject:return NOT adjustment) AND (subject:return NOT \"fw:\" OR subject:shipment NOT \"fw:\")\"'.\r\nclientRequestId: c6f3d1e1-b137-4c5d-acfd-1434ff85a610\r\nserviceRequestId: 2925969d-f4df-4a84-90b1-b9977f08a024",
  "error": {
    "message": "Syntax error: character ':' is not valid at position 24 in '\"(subject:return NOT \"re:\" OR subject:shipment NOT \"re:\") AND (attachment: return NOT exception OR attachment:shipment NOT exception) AND (subject:return NOT adjustment) AND (subject:return NOT \"fw:\" OR subject:shipment NOT \"fw:\")\"'."
  },
  "source": "office365-wus2.azconn-wus2.p.azurewebsites.net"
}

1 个答案:

答案 0 :(得分:0)

您需要按照here

的说明使用“ /”转义字符
 | Escape | Replace: ‘"’, ‘\”‘ |