使用 WSO2 Rest API 连接器更新 Salesforce 对象
Updating Salesforce object with WSO2 Rest API Connector
我尝试使用 WSO2 salesforce rest API connector.as 根据文档更新 Salesforce 中的帐户对象,如下所示
<salesforcerest.update>
<sObjectName>{$ctx:sObjectName}</sObjectName>
<fieldAndValue>{$ctx:fieldAndValue}</fieldAndValue>
<Id>{$ctx:Id}</Id>
</salesforcerest.update>
有谁知道格式 fieldAndValue 应该是什么?
我试过给属性标签和 value.But 它失败了。
到目前为止还没有使用 Rest API(只有 soap),但在我看来你必须将 attribut:value 传递给 salesforce。
根据 wso2 文档,我会尝试像这样传递 json。
"fieldAndValue":{
"name": "wso2",
"description":"This Account belongs to WSO2"
}
或者像这样里面的值。
{
"name": "wso2",
"description":"This Account belongs to WSO2"
}
希望对您有所帮助。
我尝试使用 WSO2 salesforce rest API connector.as 根据文档更新 Salesforce 中的帐户对象,如下所示
<salesforcerest.update>
<sObjectName>{$ctx:sObjectName}</sObjectName>
<fieldAndValue>{$ctx:fieldAndValue}</fieldAndValue>
<Id>{$ctx:Id}</Id>
</salesforcerest.update>
有谁知道格式 fieldAndValue 应该是什么? 我试过给属性标签和 value.But 它失败了。
到目前为止还没有使用 Rest API(只有 soap),但在我看来你必须将 attribut:value 传递给 salesforce。
根据 wso2 文档,我会尝试像这样传递 json。
"fieldAndValue":{ "name": "wso2", "description":"This Account belongs to WSO2" }
或者像这样里面的值。
{ "name": "wso2", "description":"This Account belongs to WSO2" }
希望对您有所帮助。