作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
以下查询返回错误:
查询:
SELECT Id, FirstName, LastName, OwnerId, PersonEmail
FROM Account
WHERE lower(PersonEmail) = lower('abc.DEF@org.cOM')
API 响应:
success: false
result: Dictionary
error: IntegrationError
title: "The JSON body contains an error"
message: "Salesforce returned the following error code: MALFORMED_QUERY"
detail: "
'%test%' and lower(PersonEmail) = lower('abc.DEF@org.cOM')
^
ERROR at Row:4:Column:54
Bind variables only allowed in Apex code"
我们不能在 SOQL 中使用 SQL 函数吗?
最佳答案
你做not需要将文本更改为小写:
Comparisons on strings are case-sensitive for unique case-sensitive fields and case-insensitive for all other fields
编辑:换句话说,只有特定 字段被唯一标记为区分大小写。其余的不是。此外,默认情况下,电子邮件存储为全部小写。另外,尝试 LIKE
比较,(我相信)即使对于区分大小写的字段也是不区分大小写的。
关于salesforce - SOQL 查询 - 如何通过将字段设为小写并进行比较来编写 SOQL 查询?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63139008/
由“CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "", ES_MULTILINE.."创建的文本框需要\r\n 换行。我将我的 stdoutput 重定向到那个文
我是一名优秀的程序员,十分优秀!