Hi All,
I'm trying to update an existing opportunity with a new attachment (the opportunity was created before with attachments and also by using soap webservices).
When i use the code below, the existing attachment in the opportunity just updates. And i just want it to create a new one, tried different action codes in different nodes, but it just keeps updating the attachment.
I used this blog as a guideline, it involves attachment on Material instead of Opportunity, but i figured it was simular.
Does anybody see what is wrong?
<ns0:Envelope xmlns:ns0="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://sap.com/xi/SAPGlobal20/Global" xmlns:ns2="http://sap.com/xi/AP/CustomerExtension/BYD/A2JT2">
<ns0:Header/>
<ns0:Body>
<ns1:OpportunityBundleMaintainRequest_sync>
<BasicMesageHeader />
<Opportunity actionCode="06"> <!--01=Create 02=Update 03=Delete 04=Save 05=Remove 06=NoAction -->
<ID>17764</ID>
<AttachmentFolder actionCode="06">
<Document actionCode="01">
<PathName>configurator_link</PathName>
<Name>Configurator link4</Name>
<VisibleIndicator>true</VisibleIndicator>
<VersioningEnabledIndicator>false</VersioningEnabledIndicator>
<CategoryCode>3</CategoryCode> <!-- 2=Document 3=Link -->
<TypeCode>10001</TypeCode> <!-- 10001=standard attachment -->
<Description languageCode="NL">Configurator link4</Description>
<ExternalLinkWebURI>https://blablabla/en/configurator/2023-06-20_4</ExternalLinkWebURI>
</Document>
</AttachmentFolder>
</Opportunity>
</ns1:OpportunityBundleMaintainRequest_sync>
</ns0:Body>
</ns0:Envelope><br>
Kind Regards
Rudi