如何在 Node Red 的 salesforce 节点的 SOQL 中动态更改 where 子句

How to change where clause dynamically in SOQL in salesforce node in Node Red

如何从 post API 获取参数并在节点红色的 SOQL 的 where 子句中使用它。 在我的例子中,我从 postman 传递 'name' 并且在红色节点中已将 salseforce SOQL 节点与 http(post) 节点连接。尝试将 where 子句更改为 where name = '{msg.payload.name}' 但它不起作用。

怎么做??

假设这是 node-red-contrib-salesforce 节点集合中的 SOQL 节点。

该节点的文档说明可以通过 msg.query 参数传入查询。

The query can be configured in the node, however if left blank, the query should be set in an incoming message on msg.query. See the Salesforce SOQL documentation for more information.

因此,要执行您想要的操作,您必须先在功能节点或更改节点中构建查询,然后再将其传递到 SOQL 节点。