Delete Code Assignment for an Organization

In this use case, we'll delete code assignment for an organization.

Operation: updateOrganization

Request Body

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
	<soap:Body>
		<ns1:updateOrganization xmlns:ns1="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/applicationModule/types/">
			<ns1:organizationParty xmlns:ns2="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/">
				<ns2:PartyId>300100547088843</ns2:PartyId>
				<ns2:CodeAssignment xmlns:ns3="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/">
					<ns3:CodeAssignmentId>300100547088844</ns3:CodeAssignmentId>
					<ns3:Status>I</ns3:Status>
				</ns2:CodeAssignment>
			</ns1:organizationParty>
		</ns1:updateOrganization>
	</soap:Body>
</soap:Envelope>

Response Body

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
   <env:Header>
      <wsa:Action>http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/applicationModule/OrganizationService/updateOrganizationResponse</wsa:Action>
      <wsa:MessageID>urn:uuid:0ffb941f-fa06-45e4-a399-8fc943a78219</wsa:MessageID>
   </env:Header>
   <env:Body>
      <ns0:updateOrganizationResponse xmlns:ns0="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/applicationModule/types/">
         <ns3:result xsi:type="ns2:OrganizationPartyResult" xmlns:ns5="http://xmlns.oracle.com/apps/cdm/foundation/parties/contactPointService/" xmlns:ns8="http://xmlns.oracle.com/apps/cdm/foundation/parties/relationshipService/" xmlns:ns2="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/" xmlns:tns="http://xmlns.oracle.com/adf/svc/errors/" xmlns:ns0="http://xmlns.oracle.com/adf/svc/types/" xmlns:ns1="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns3="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/applicationModule/types/">
            <ns2:Value>
               <ns2:PartyNumber>CDRM_929981</ns2:PartyNumber>
               <ns2:PartyId>300100547088843</ns2:PartyId>
               <ns2:PartyType>ORGANIZATION</ns2:PartyType>
               <ns2:PartyName>TestOrg</ns2:PartyName>
               <ns2:LastUpdatedBy>SALES_ADMIN</ns2:LastUpdatedBy>
               <ns2:ValidatedFlag xsi:nil="true"/>
               <ns2:LastUpdateLogin>CC22A97B5FE9894EE053D711F10A63D1</ns2:LastUpdateLogin>
               <ns2:CreationDate>2021-09-21T08:46:17Z</ns2:CreationDate>
               <ns2:RequestId xsi:nil="true"/>
               <ns2:LastUpdateDate>2021-09-21T08:50:39.69Z</ns2:LastUpdateDate>
               <ns2:CreatedBy>SALES_ADMIN</ns2:CreatedBy>
               <ns2:OrigSystemReference>300100547088843</ns2:OrigSystemReference>
               <ns2:HQBranchIndicator xsi:nil="true"/>
               <ns2:DUNSNumberC xsi:nil="true"/>
               <ns2:SICCode xsi:nil="true"/>
               <ns2:JgzzFiscalCode xsi:nil="true"/>
               <ns2:Address1 xsi:nil="true"/>
               <ns2:Country xsi:nil="true"/>
               <ns2:Address3 xsi:nil="true"/>
               <ns2:GroupType xsi:nil="true"/>
               <ns2:Address2 xsi:nil="true"/>
               <ns2:Address4 xsi:nil="true"/>
               <ns2:Status>A</ns2:Status>
               <ns2:City xsi:nil="true"/>
               <ns2:PostalCode xsi:nil="true"/>
               <ns2:County xsi:nil="true"/>
               <ns2:YearEstablished xsi:nil="true"/>
               <ns2:Province xsi:nil="true"/>
               <ns2:State xsi:nil="true"/>
               <ns2:URL xsi:nil="true"/>
               <ns2:AnalysisFy xsi:nil="true"/>
               <ns2:SICCodeType xsi:nil="true"/>
               <ns2:EmailAddress xsi:nil="true"/>
               <ns2:FiscalYearendMonth xsi:nil="true"/>
               <ns2:EmployeesTotal xsi:nil="true"/>
               <ns2:CurrentFiscalYearPotentialRevenueAmount xsi:nil="true"/>
               <ns2:NextFyPotentialRevenueAmount xsi:nil="true"/>
               <ns2:GSAIndicatorFlag xsi:nil="true"/>
               <ns2:CategoryCode xsi:nil="true"/>
               <ns2:LanguageName xsi:nil="true"/>
               <ns2:MissionStatement xsi:nil="true"/>
               <ns2:ThirdPartyFlag xsi:nil="true"/>
               <ns2:HomeCountry xsi:nil="true"/>
               <ns2:CreatedByModule>AMS</ns2:CreatedByModule>
               <ns2:ObjectVersionNumber>2</ns2:ObjectVersionNumber>
               <ns2:CertificationLevel xsi:nil="true"/>
               <ns2:CertReasonCode xsi:nil="true"/>
               <ns2:PrimaryPhonePurpose xsi:nil="true"/>
               <ns2:PrimaryPhoneContactPointId xsi:nil="true"/>
               <ns2:PrimaryPhoneLineType xsi:nil="true"/>
               <ns2:PrimaryPhoneCountryCode xsi:nil="true"/>
               <ns2:PrimaryPhoneAreaCode xsi:nil="true"/>
               <ns2:PrimaryPhoneNumber xsi:nil="true"/>
               <ns2:PreferredContactMethod xsi:nil="true"/>
               <ns2:PrimaryPhoneExtension xsi:nil="true"/>
               <ns2:IdenAddrLocationId xsi:nil="true"/>
               <ns2:PrimaryURLContactPointId xsi:nil="true"/>
               <ns2:PrimaryEmailContactPointId xsi:nil="true"/>
               <ns2:IdenAddrPartySiteId xsi:nil="true"/>
               <ns2:PreferredName xsi:nil="true"/>
               <ns2:PersonSecondLastName xsi:nil="true"/>
               <ns2:PreferredNameId xsi:nil="true"/>
               <ns2:TradingPartnerIdentifier xsi:nil="true"/>
               <ns2:PreferredContactPersonId xsi:nil="true"/>
               <ns2:PreferredFunctionalCurrency xsi:nil="true"/>
               <ns2:InternalFlag>false</ns2:InternalFlag>
               <ns2:Comments xsi:nil="true"/>
               <ns2:CeoName>TestCEO</ns2:CeoName>
               <ns2:PrincipalName>TestName</ns2:PrincipalName>
               <ns2:OrganizationSize>SMALL</ns2:OrganizationSize>
               <ns2:PartyUniqueName>TestOrg</ns2:PartyUniqueName>
               <ns2:SourceSystem xsi:nil="true"/>
               <ns2:SourceSystemReferenceValue xsi:nil="true"/>
               <ns2:SourceSystemUpdateDate xsi:nil="true"/>
               <ns2:CodeAssignment>
                  <ns1:CodeAssignmentId>300100547088844</ns1:CodeAssignmentId>
                  <ns1:OwnerTableName>HZ_PARTIES</ns1:OwnerTableName>
                  <ns1:OwnerTableId>300100547088843</ns1:OwnerTableId>
                  <ns1:ClassCategory>CUSTOMER_CATEGORY</ns1:ClassCategory>
                  <ns1:ClassCode>BROKER</ns1:ClassCode>
                  <ns1:PrimaryFlag>true</ns1:PrimaryFlag>
                  <ns1:StartDateActive>2020-10-10</ns1:StartDateActive>
                  <ns1:EndDateActive>2020-11-11</ns1:EndDateActive>
                  <ns1:CreatedBy>SALES_ADMIN</ns1:CreatedBy>
                  <ns1:CreationDate>2021-09-21T08:46:17.832Z</ns1:CreationDate>
                  <ns1:LastUpdateLogin>CC22A97B5FE9894EE053D711F10A63D1</ns1:LastUpdateLogin>
                  <ns1:LastUpdateDate>2021-09-21T08:50:36Z</ns1:LastUpdateDate>
                  <ns1:LastUpdatedBy>SALES_ADMIN</ns1:LastUpdatedBy>
                  <ns1:Status>I</ns1:Status>
                  <ns1:ObjectVersionNumber>2</ns1:ObjectVersionNumber>
                  <ns1:CreatedByModule>AMS</ns1:CreatedByModule>
                  <ns1:Rank>11</ns1:Rank>
                  <ns1:OwnerTableKey1 xsi:nil="true"/>
                  <ns1:OwnerTableKey2 xsi:nil="true"/>
                  <ns1:OwnerTableKey3 xsi:nil="true"/>
                  <ns1:OwnerTableKey4 xsi:nil="true"/>
                  <ns1:OwnerTableKey5 xsi:nil="true"/>
                  <ns1:RequestId xsi:nil="true"/>
               </ns2:CodeAssignment>
            </ns2:Value>
         </ns3:result>
      </ns0:updateOrganizationResponse>
   </env:Body>
</env:Envelope>