Update Contact Point of a Contact record Customer

In this use case, we'll update existing contact points for a person and for an organization. Person contact point is updated using mergePerson operation of Person web service and Organization contact point is updated using updateOrganization operation of Organization web service.

Updating contact point of a Person

Operation: mergePerson

Request Body

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/" xmlns:per="http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/" xmlns:par="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/" xmlns:sour="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/sourceSystemRef/" xmlns:con="http://xmlns.oracle.com/apps/cdm/foundation/parties/contactPointService/" xmlns:con1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/contactPoint/" xmlns:par1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/partySite/" xmlns:per1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/person/" xmlns:rel="http://xmlns.oracle.com/apps/cdm/foundation/parties/relationshipService/" xmlns:org="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/orgContact/" xmlns:rel1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/relationship/">
<soapenv:Header/>
   <soapenv:Body>
      <typ:mergePerson>
         <typ:personParty>
            <per:PartyId>300100551395016</per:PartyId>
            <per:Email>
               <con:ContactPointId>300100551395017</con:ContactPointId>
               <con:ContactPointType>EMAIL</con:ContactPointType>
               <con:OwnerTableName>HZ_PARTIES</con:OwnerTableName>
               <con:OwnerTableId>300100551395016</con:OwnerTableId>
               <con:EmailAddress>MMM.NNN@com</con:EmailAddress>
            </per:Email>
         </typ:personParty>
      </typ:mergePerson>
   </soapenv:Body>
</soapenv:Envelope>

Response Body

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:typ="http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/">
   <env:Header>
      <wsa:Action>http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule//PersonService/mergePersonResponse</wsa:Action>
      <wsa:MessageID>urn:uuid:81b8a1d2-83b0-488b-b2e2-1431b435c8fc</wsa:MessageID>
   </env:Header>
   <env:Body>
      <ns0:mergePersonResponse xmlns:ns0="http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/">
         <ns1:result xsi:type="ns2:PersonResult" xmlns:ns2="http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/" xmlns:ns1="http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/" xmlns:ns3="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/" xmlns:tns="http://xmlns.oracle.com/adf/svc/errors/" xmlns:ns0="http://xmlns.oracle.com/adf/svc/types/" xmlns:ns5="http://xmlns.oracle.com/apps/cdm/foundation/parties/contactPointService/" xmlns:ns8="http://xmlns.oracle.com/apps/cdm/foundation/parties/relationshipService/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <ns2:Value>
               <ns2:PartyId>300100551395016</ns2:PartyId>
               <ns2:PartyNumber>CDRM_968403</ns2:PartyNumber>
               <ns2:PartyName>Randy1 Andy1 E1</ns2:PartyName>
               <ns2:PartyType>PERSON</ns2:PartyType>
               <ns2:ValidatedFlag xsi:nil="true"/>
               <ns2:LastUpdatedBy>SALES_ADMIN</ns2:LastUpdatedBy>
               <ns2:LastUpdateLogin>CB95B496CAAA2F65E0531C5CF00ADC28</ns2:LastUpdateLogin>
               <ns2:CreationDate>2021-09-19T07:04:30.0Z</ns2:CreationDate>
               <ns2:RequestId xsi:nil="true"/>
               <ns2:LastUpdateDate>2021-09-19T07:08:08.2Z</ns2:LastUpdateDate>
               <ns2:CreatedBy>SALES_ADMIN</ns2:CreatedBy>
               <ns2:OrigSystemReference>300100551395016</ns2:OrigSystemReference>
               <ns2:SICCode xsi:nil="true"/>
               <ns2:JgzzFiscalCode xsi:nil="true"/>
               <ns2:PersonFirstName>Randy1</ns2:PersonFirstName>
               <ns2:PersonPreNameAdjunct xsi:nil="true"/>
               <ns2:PersonLastName>E1</ns2:PersonLastName>
               <ns2:PersonMiddleName>Andy1</ns2:PersonMiddleName>
               <ns2:PersonTitle xsi:nil="true"/>
               <ns2:PersonNameSuffix xsi:nil="true"/>
               <ns2:PersonPreviousLastName xsi:nil="true"/>
               <ns2:PersonAcademicTitle xsi:nil="true"/>
               <ns2:Country xsi:nil="true"/>
               <ns2:Address2 xsi:nil="true"/>
               <ns2:Address1 xsi:nil="true"/>
               <ns2:Address4 xsi:nil="true"/>
               <ns2:Address3 xsi:nil="true"/>
               <ns2:PostalCode xsi:nil="true"/>
               <ns2:City xsi:nil="true"/>
               <ns2:Province xsi:nil="true"/>
               <ns2:State xsi:nil="true"/>
               <ns2:County xsi:nil="true"/>
               <ns2:Status>A</ns2:Status>
               <ns2:URL xsi:nil="true"/>
               <ns2:SICCodeType xsi:nil="true"/>
               <ns2:EmailAddress>MMM.NNN@com</ns2:EmailAddress>
               <ns2:GSAIndicatorFlag xsi:nil="true"/>
               <ns2:LanguageName xsi:nil="true"/>
               <ns2:MissionStatement xsi:nil="true"/>
               <ns2:CategoryCode xsi:nil="true"/>
               <ns2:ThirdPartyFlag xsi:nil="true"/>
               <ns2:Salutation xsi:nil="true"/>
               <ns2:CreatedByModule>AMS</ns2:CreatedByModule>
               <ns2:CertReasonCode xsi:nil="true"/>
               <ns2:CertificationLevel xsi:nil="true"/>
               <ns2:PrimaryPhonePurpose xsi:nil="true"/>
               <ns2:PrimaryPhoneContactPTId xsi:nil="true"/>
               <ns2:PrimaryPhoneCountryCode xsi:nil="true"/>
               <ns2:PrimaryPhoneLineType xsi:nil="true"/>
               <ns2:PrimaryPhoneNumber xsi:nil="true"/>
               <ns2:PrimaryPhoneAreaCode xsi:nil="true"/>
               <ns2:PreferredContactMethod xsi:nil="true"/>
               <ns2:PrimaryPhoneExtension xsi:nil="true"/>
               <ns2:IdenAddrLocationId xsi:nil="true"/>
               <ns2:PrimaryEmailContactPTId>300100551395017</ns2:PrimaryEmailContactPTId>
               <ns2:IdenAddrPartySiteId xsi:nil="true"/>
               <ns2:PersonLastNamePrefix xsi:nil="true"/>
               <ns2:PrimaryURLContactPTId xsi:nil="true"/>
               <ns2:PreferredName xsi:nil="true"/>
               <ns2:PersonSecondLastName xsi:nil="true"/>
               <ns2:PreferredNameId xsi:nil="true"/>
               <ns2:PreferredContactPersonId xsi:nil="true"/>
               <ns2:InternalFlag>false</ns2:InternalFlag>
               <ns2:PreferredFunctionalCurrency xsi:nil="true"/>
               <ns2:Gender xsi:nil="true"/>
               <ns2:MaritalStatus xsi:nil="true"/>
               <ns2:Comments xsi:nil="true"/>
               <ns2:DateOfBirth xsi:nil="true"/>
               <ns2:UserGUID xsi:nil="true"/>
               <ns2:PartyUniqueName>Randy1 Andy1 E1</ns2:PartyUniqueName>
               <ns2:SourceSystem xsi:nil="true"/>
               <ns2:SourceSystemReferenceValue xsi:nil="true"/>
               <ns2:SourceSystemUpdateDate xsi:nil="true"/>
               <ns2:Email xmlns:ns6="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/contactPoint/">
                  <ns5:ContactPointId>300100551395017</ns5:ContactPointId>
                  <ns5:ContactPointType>EMAIL</ns5:ContactPointType>
                  <ns5:Status>A</ns5:Status>
                  <ns5:OwnerTableName>HZ_PARTIES</ns5:OwnerTableName>
                  <ns5:OwnerTableId>300100551395016</ns5:OwnerTableId>
                  <ns5:PrimaryFlag>true</ns5:PrimaryFlag>
                  <ns5:OrigSystemReference>300100551395017</ns5:OrigSystemReference>
                  <ns5:LastUpdateDate>2021-09-19T07:08:08.0Z</ns5:LastUpdateDate>
                  <ns5:LastUpdatedBy>SALES_ADMIN</ns5:LastUpdatedBy>
                  <ns5:CreationDate>2021-09-19T07:04:30.027Z</ns5:CreationDate>
                  <ns5:CreatedBy>SALES_ADMIN</ns5:CreatedBy>
                  <ns5:LastUpdateLogin>CB95B496CAAA2F65E0531C5CF00ADC28</ns5:LastUpdateLogin>
                  <ns5:RequestId xsi:nil="true"/>
                  <ns5:ObjectVersionNumber>2</ns5:ObjectVersionNumber>
                  <ns5:CreatedByModule>AMS</ns5:CreatedByModule>
                  <ns5:ContactPointPurpose xsi:nil="true"/>
                  <ns5:PrimaryByPurpose>N</ns5:PrimaryByPurpose>
                  <ns5:StartDate>2021-09-19</ns5:StartDate>
                  <ns5:EndDate>4712-12-31</ns5:EndDate>
                  <ns5:RelationshipId xsi:nil="true"/>
                  <ns5:PartyUsageCode xsi:nil="true"/>
                  <ns5:OrigSystem xsi:nil="true"/>
                  <ns5:EmailFormat/>
                  <ns5:EmailAddress>MMM.NNN@com</ns5:EmailAddress>
                  <ns5:PartyName>Randy1 Andy1 E1</ns5:PartyName>
                  <ns5:OverallPrimaryFlag>true</ns5:OverallPrimaryFlag>
               </ns2:Email>
            </ns2:Value>
         </ns1:result>
      </ns0:mergePersonResponse>
   </env:Body>
</env:Envelope>

Updating contact point of an Organization

Operation: updateOrganization

Request Body

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/" xmlns:per="http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/" xmlns:par="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/" xmlns:sour="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/sourceSystemRef/" xmlns:con="http://xmlns.oracle.com/apps/cdm/foundation/parties/contactPointService/" xmlns:con1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/contactPoint/" xmlns:par1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/partySite/" xmlns:per1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/person/" xmlns:rel="http://xmlns.oracle.com/apps/cdm/foundation/parties/relationshipService/" xmlns:org="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/orgContact/" xmlns:rel1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/relationship/">
<soapenv:Header/>
<soapenv:Body>
<typ:mergePerson>
<typ:personParty>
<!--Optional:-->
<per:PartyId>300000077548711</per:PartyId>
<per:Email>
<!--Optional:-->
<con:ContactPointId>300000077548892</con:ContactPointId>
<!--Optional:-->
<con:ContactPointType>EMAIL</con:ContactPointType>
<!--Optional:-->
<con:OwnerTableName>HZ_PARTIES</con:OwnerTableName>
<!--Optional:-->
<con:OwnerTableId>300000077548711</con:OwnerTableId>
<con:EmailAddress>MMM.NNN@com</con:EmailAddress>
</per:Email>
</typ:personParty>
</typ:mergePerson>
</soapenv:Body>
</soapenv:Envelope>

Response Body

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/applicationModule/types/" xmlns:per="http://xmlns.oracle.com/apps/cdm/foundation/parties/personService/" xmlns:par="http://xmlns.oracle.com/apps/cdm/foundation/parties/partyService/" xmlns:sour="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/sourceSystemRef/" xmlns:con="http://xmlns.oracle.com/apps/cdm/foundation/parties/contactPointService/" xmlns:con1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/contactPoint/" xmlns:par1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/partySite/" xmlns:per1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/person/" xmlns:rel="http://xmlns.oracle.com/apps/cdm/foundation/parties/relationshipService/" xmlns:org="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/orgContact/" xmlns:rel1="http://xmlns.oracle.com/apps/cdm/foundation/parties/flex/relationship/">
   <soapenv:Header/>
   <soapenv:Body>
      <typ:mergePerson>
         <typ:personParty>
            <!--Optional:-->
            <per:PartyId>300000077548711</per:PartyId>
            <per:Email>
               <!--Optional:-->
               <con:ContactPointId>300000077548892</con:ContactPointId>
               <!--Optional:-->
               <con:ContactPointType>EMAIL</con:ContactPointType>
               <!--Optional:-->
               <con:OwnerTableName>HZ_PARTIES</con:OwnerTableName>
               <!--Optional:-->
               <con:OwnerTableId>300000077548711</con:OwnerTableId>
               <con:EmailAddress>MMM.NNN@com</con:EmailAddress>
            </per:Email>
         </typ:personParty>
      </typ:mergePerson>
   </soapenv:Body>
</soapenv:Envelope>