我在我的IOS-iPad項目之一中使用Salesforce CRM,我們正在嘗試將數據添加回Salesforce。有人可以告訴我這是如何實現的嗎?我們如何在iOS中將數據上傳到Saleforce?
我們使用SOAP API和SudzC.com庫。以下是示例請求片段。 我們如何生成externalIDFieldName?
<soapenv:Body>
<urn:upsert>
<!--Custom Field defined in Setup as the External ID-->
<urn:externalIDFieldName>
<b>External_Id__c</b>
</urn:externalIDFieldName>
<urn:sObjects xsi:type="Account"> <!--Zero or more repetitions:-->
<b><!--Existing Id, this record will be updated--></b>
<External_Id__c><b>ars1</b></External_Id__c>
<Name><b>Acme Rocket Superstore</b></Name>
<b><!--You may enter ANY elements at this point--></b>
<NumberOfEmployees><b>340</b></NumberOfEmployees>
</urn:sObjects>
<urn:sObjects xsi:type="Account">
<b><!--New External Id, this record will be created (ensure required fields are present)--></b>
<External_Id__c><b>ams1</b></External_Id__c>
<Name><b>Acme Medical Supplies</b></Name>
<NumberOfEmployees><b>17</b></NumberOfEmployees>
</urn:sObjects>
</urn:upsert>
</soapenv:Body>
Thanks LaceySnr ...我能夠破解它......但現在我得到錯誤:「必須發送一個具體的實體類型」,任何想法regrading? – Deepthi 2012-03-30 08:15:38