Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2175

Problem with Salesforce Upsert

$
0
0

Hello,

I've got a problem with a Salesforce integration to SAP.

I don't have a PI or something else.

My scenario:

I generate a ABAP Proxy with the SFDC enterprise.wsdl. At the Query-Method in the external view of proxy I marked "Untyped Mapping" for the "result" in the output-attribute to get the result as a xstring. So I can get more than one record in a query result. That works fine.

 

Now I have the problem with the Upsert-Method. I want to upsert more than one record to Salesforce. Regarding to this point I marked "Untyped Mapping" for "sObjects" in the input-attribute of the Upsert-Method to pass the sObjects as xstring. I want to pass the sObjects via xstring because ABAP can't generate the sObject-Datatype at the runtime.

When I pass my xstring with sObjects, only the first sObject will be handled in Salesforce. All following sObjects are ignored by Salesforce.

 

My sObject-String:

 

<sObjects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:sobject.enterprise.soap.sforce.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xsi:type="sf:Opportunity">

  <sf:NAME>Test 1</sf:NAME>

  <sf:RECORDTYPEID>012180000008dMbAAI</sf:RECORDTYPEID>

</sObjects>

<sObjects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:sobject.enterprise.soap.sforce.com" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xsi:type="sf:Opportunity">

  <sf:NAME>Test 2</sf:NAME>

  <sf:RECORDTYPEID>012180000008dMbAAI</sf:RECORDTYPEID>

</sObjects>


Viewing all articles
Browse latest Browse all 2175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>